Space Function |
Microsoft.VisualBasic.Strings
Space( number )
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 the empty string), runtime error 5, "Invalid procedure call or argument," is generated if number is negative.
The Space function is most useful for creating a string buffer, an area where an external function can write data to be returned to the calling program.