bas7qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Basic Program Line
                                                 Contents  Index  Back
─────────────────────────────────────────────────────────────────────────────
BASIC Program Line
BASIC program lines have the following syntax:
 
  [line identifier] [statement] [:statement]...[comment]
 
More than one statement can be placed on a line, but colons (:) must
separate statements, as illustrated by the following:
 
            FOR I = 1 TO 5: PRINT "g'day, mate": NEXT I
 
If you create your programs using QBX:
   ■ You are limited to 256 characters.
   ■ QBX does not recognize the underscore (_) as a line continuation so
     when a QBX program is loaded, all underscores are removed and the
     continued lines are joined to form a single line.
 
If you use your own editor and compile your programs from the command line:
   ■ You may use the underscore as the last character to create a program
     line that extends across more than one physical line.  For example:
 
            IF (TestChar$ = " " OR TestChar$ = ".") AND LineNumber < 23 _
            AND NOT EOF(FileNumber) THEN
 
   ■ Underscores cannot be used to continue DATA or REM statements.
 
  See Also    Line Identifiers
              Statements