Click or drag to resize

IsSpace Function

X#
Determine if the leftmost character in a string is a blank (that is, Chr(9) through Chr(13) or Chr(32)).

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION IsSpace(
	pszString AS STRING
) AS LOGIC
Request Example View Source

Parameters

pszString
Type: String
The string to examine.

Return Value

Type: Logic
TRUE if the first character is blank; otherwise, FALSE.
Remarks
Examples
These examples illustrate IsSpace() applied to various values:
X#
1LOCAL cString2Examine AS STRING
2cString2Examine := Chr(9) + "Hello"
3? IsSpace(Substr(cString2Examine, 1, 1))    // TRUE
4? IsSpace(Substr(cString2Examine, 2, 1))    // TRUE
5? IsSpace(Substr(cString2Examine, 3, 1))    // FALSE
See Also