WSpace
Creates a WString of a given length filled with spaces (" ")
result = WSpace( count )
count
WSpace creates a wstring (wide character string- Unicode) with the specified number of spaces.
Syntax
Usage
result = WSpace( count )
Parameters
count
An integer type specifying the length of the string to be created.
Return Value
Description
WSpace creates a wstring (wide character string- Unicode) with the specified number of spaces.
Example
Dim a As WString * 10
a = "x" + WSpace(3) + "x"
Print a ' prints: x x
a = "x" + WSpace(3) + "x"
Print a ' prints: x x
Platform Differences
- Unicode strings are not supported in the DOS port of FreeBASIC.
Dialect Differences
- Not available in the -lang qb dialect unless referenced with the alias __Wspace.
Differences from QB
- New to FreeBASIC
See also