March 2003
Intermediate to advanced
512 pages
14h 30m
English
Space Function
Space(number)numberUse: Required
Data Type: Integer
An expression evaluating to the number of spaces required.
A String containing number
spaces.
Creates a string containing number
spaces.
While number can be zero (in
which case the function returns a empty 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 Space$ function.
Read now
Unlock full access