Space: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(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'...")
(No difference)

Revision as of 19:43, 8 July 2012

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