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.
SPC Function
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
SPC(n%)
 
    ■ n%   A numeric expression with an integer value between
           0 and 32,767, inclusive; a number that is combined with the
           width of the output line to determine the number of blank
           characters to print:
               number of spaces = (n% MOD width)
Returns
    SPC does not return a value to the program; instead, it prints
    one or more spaces to the output device or file, starting at the
    current print position.
 
    ■ A SPC function can be used in the PRINT, LPRINT, or PRINT #
      statements.
    ■ BASIC assumes that a semicolon (;) immediately follows any use
      of the SPC function, whether you explicitly code it or not.
      For example, the following two PRINT statements are equivalent:
          PRINT  SPC(10) FixLen1$; SPC(10) FixLen2$; SPC(10) FixLen3$
          PRINT  SPC(10); FixLen1$; SPC(10); FixLen2$; SPC(10); FixLen3$
 
See Also    LPRINT    PRINT    PRINT USING    SPACE$    TAB