Space

From NSB App Studio
Revision as of 19:43, 8 July 2012 by Brendon (talk | contribs) (Created page with "SPACE(''number'') '''Description''' SPACE returns a string consisting of a number of spaces. The required argument, ''number'', is any valid numeric expression. '''Example'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SPACE(number)

Description

SPACE returns a string consisting of a number of spaces. The required argument, number, is any valid numeric expression.

Example

REM SPACE Example
'SPACE creates a string of spaces
DIM Spaces, Letter
Spaces = SPACE(4)
FOR i = 0 to 4
  Letter = LEFT(Spaces, i) & CHR(65 + i)
  PRINT Letter

Output

A
 B
  C
   D
    E

Related Items

STRING