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.3b
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#
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