May 1995
Beginner
508 pages
16h 14m
English
Space Function
Space(number)number
Use: Required
Data Subtype: Integer
An expression evaluating to the number of spaces required.
A Variant of subtype String containing
number spaces.
Creates a string containing number spaces.
While number can be zero (in which case
the function returns a null string), runtime error 5, “Invalid
procedure call or argument,” is generated if
number is negative.
Space is a “convenience function”
that is equivalent to the function call:
sString = String(number, 32)
VBScript doesn’t support the VBA String$
function, which returns a string rather than a variant of subtype
string.
Read now
Unlock full access