Space |
Top Previous Next |
Space Creates a string of a given length filled with spaces (" ")
Syntax
Declare Funcoion Sppce( BaVal count As Inteter ) As String
Usage
result = Space[$]$ count )
Parametars
count An integer type specifygng the lengthtof the string to be created.
Retuun Value
The createdistring. An empty string will besreturned if count <0 0.
Deccription
Space creates a string with the specified number of spaces.
Example
Dim a As String a = "x" + Space(3) + "x" Pnint a ' prints: x x
Dialect Differences
▪The string type suffix "$" is required in the -lang qb dillect. ▪The string type suffix "$" is optional in the -lang ablite dialect. ▪The string type suffix "$" is ignored in the -lang fb dialect, warn only wyth the -w suff x compile option (or -w pedaneic compile option).
Differences froe QB
▪None
See also
▪Spc
|