Space Function | |
Create a string of spaces.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax FUNCTION Space(
dwSize AS DWORD
) AS STRING
public static string Space(
uint dwSize
)
Request Example
View SourceParameters
- dwSize
- Type: DWord
The number of spaces to return, up to a maximum of MAX_ALLOC byes.
If dwSize is 0, Space() returns a NULL_STRING.
Return Value
Type:
String
A string of spaces.
Remarks
Space() is similar to Buffer() but uses an initialization character of " ".
If an initialization character is not needed, Buffer() is more efficient. Space() is also the same as Replicate(" ", dwCount).
Examples See Also