Spc Function
Language Items List
Definition:
Prints the indicated number of blank characters in a Print method, thus moving
to a new print position. Spc is used exclusively with the Print method.
Syntax:
Spc(number)
Syntax Description
number Integer that determines the number of characters to skip print.
Details:
The Spc function movesto a new print position as well as designating the
number of spaces to include using the current print position as a starting point.
The number argument specifies how many characters to skip starting at the current print
position.
When using the Print method on a File object, Spc considers the defined print
line width and does the following:
If number is less than the defined width of the print line, the specified number of
spaces is printed. The next print position immediately follows these printed
spaces.
If number is greater than the defined width of the print line, Spc calculates
printposition equal to number modulo (Mod) width and prints the number of blank characters equal to the
specified calculation. The starting point is the current print position.
If the difference between the current print position and the output-line width
is less than number ( or number Mode width), the Spc function goes to the beginning of the next
line and generates the designated number of spaces. In this case, as many spaces
as possible will always be printed on the current line (based on the current
print position and the defined print line width), and the remainder of the
requested spaces will be printed on the next.
See Also:
Space$ Function
String, String$ Function
Tab Function