ex.hlp (Topic list)
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"