ex.hlp (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 Example
                        Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
' This example uses the SPC statement to insert a number of spaces within a
' printed line using the PRINT statement.
 
' To try this example:
' 1. Choose New Project from the File menu
' 2. Copy the code example below to the code window
' 3. Press F5 to run the example
 
 CLS                                   ' Clear the screen
 PRINT "The following line is printed using standard screen print zones."
 PRINT : PRINT "Column 1", "Column 2", "Column 3", "Column 4", "Column 5"
 PRINT : PRINT
 PRINT "The next line is printed using the SPC statement to achieve the"
 PRINT "same results."
 PRINT
 PRINT "Column 1"; SPC(6); "Column 2"; SPC(6); "Column 3";
 PRINT SPC(6); "Column 4"; SPC(6); "Column 5"