Space: Difference between revisions
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 edit summary |
||
Line 1: | Line 1: | ||
Space(''number'') | |||
== Description == | |||
Space returns a string consisting of a number of spaces. The required argument, ''number'', is any valid numeric expression. | |||
== Example == | |||
<pre> | <pre> | ||
Rem Space Example | |||
' | 'Space creates a string of spaces | ||
Dim Spaces, Letter | |||
Spaces = | Spaces = Space(4) | ||
For i = 0 to 4 | |||
Letter = | Letter = Left(Spaces, i) & CHR(65 + i) | ||
Print Letter | |||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 27: | Line 27: | ||
</pre> | </pre> | ||
== Related Items == | |||
[[string|STRING]] | [[string|STRING]] | ||
[[Category:Language Reference]] |
Revision as of 03:20, 17 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