17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GW-BASIC <strong>User's</strong> Guide<br />

SPC Function<br />

Purpose:<br />

To skip a specified number of spaces in a PRINT or an LPRINT statement.<br />

Syntax:<br />

SPC(n)<br />

Comments:<br />

n must be within the range of 0 to 255.<br />

If n is greater than the defined width of the printer or the screen, the value used will be n MOD<br />

width.<br />

A semicolon is assumed to follow the SPC(n) command.<br />

SPC may only be used with PRINT, LPRINT and PRINT# statements (see the SPACE$ function).<br />

Examples:<br />

PRINT "OVER" SPC(15) "THERE"<br />

OVER THERE<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/SPC.html28/03/2004 21.29.47

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!