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 />

SPACE$ Function<br />

Purpose:<br />

To return a string of x spaces.<br />

Syntax:<br />

SPACE$(x)<br />

Comments:<br />

x is rounded to an integer and must be within the range of 0 to 255 (see SPC function).<br />

Examples:<br />

10 FOR N=1 TO 5<br />

20 X$=SPACE$(N)<br />

30 PRINT X$; N<br />

40 NEXT N<br />

RUN<br />

1<br />

2<br />

3<br />

4<br />

5<br />

Line 20 adds one space for each loop execution.<br />

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

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

Saved successfully!

Ooh no, something went wrong!