Click or drag to resize

IsSpace Function

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.2a
Syntax
 FUNCTION IsSpace(
	pszString AS STRING
) AS LOGIC
View Source

Parameters

pszString
Type: String
The string to examine.

Return Value

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