Click or drag to resize

IsBDigit Function

Determine if the leftmost character in a string is a binary digit (0 or 1).

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.2a
Syntax
 FUNCTION IsBDigit(
	pszString AS STRING
) AS LOGIC
View Source

Parameters

pszString
Type: String
The string to examine.

Return Value

Type: Boolean
TRUE if the first character of the string is 0 or 1; otherwise, FALSE.
Remarks
Examples
These examples demonstrate various results of IsBDigit():
X#
? IsBDigit("AbcDe")                // FALSE
? IsBDigit("1abcd")                // TRUE
? IsBDigit("012345")        // TRUE
? IsBDigit("21345")                // FALSE
See Also