Click or drag to resize

Space Function

X#
Create a string of spaces.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION Space(
	dwSize AS DWORD
) AS STRING
Request Example View Source

Parameters

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