Re: Help

 BBS: Inland Empire Archive
Date: 02-06-93 (01:58)             Number: 286
From: HERMAN NIEUWENDAAL           Refer#: NONE
  To: ZACK JONES                    Recvd: NO  
Subj: Re: Help                       Conf: (2) Quik_Bas
 ZJ>a$ = STRING$(1920, 176)
 You sure opened a can of worms with this one!  I thought for sure it was a
 joke at first.  The popular PRINT a$; suggestion supresses the line feed
 if you stop at line 24, but not at line 25.  VIEW PRINT 1 TO 25 works for
 both cases.

 My approach to this in the past has been:
  FOR i% = 1 to 25 : LOCATE i%, 1 : PRINT STRING$(80, 176); : NEXT

 It seems that the semi-colon will suppress the CR/LF on line 25 only if the
 length of the printed string is <= 80.  It might be interesting to run some
 loop time trials to see which is fastest, and also compare compile sizes
 with and without VIEW PRINT.  I know what you're thinking... we're really
 splitting hairs here.  But it's not even 2AM yet.  Much too early to shut

 Another mildly interesting tidbit:
'This won't supress a CR/LF at line 25:
  PRINT STRING$(1920, 176);
  PRINT STRING$(80,"X");

'This will:
  PRINT STRING$(1920, 176);
  LOCATE 25,1: PRINT STRING$(80,"X");

... Herman
--- FMail 0.92
 * Origin: Software Heaven (813)653-0029 (1:377/41.0)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET