Space: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
Brendon (talk | contribs)
No edit summary
Line 29: Line 29:
== Related Items ==
== Related Items ==


[[string|STRING]]
[[string|String]]


[[Category:Language Reference]]
[[Category:Language Reference]]

Revision as of 01:41, 24 August 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