Click or drag to resize

IsUpper Function

Determine if the leftmost character in a string is uppercase.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.5
Syntax
 FUNCTION IsUpper(
	pszString AS STRING
) AS LOGIC

Parameters

pszString
Type: String
The string to examine.

Return Value

Type: Boolean
TRUE if the first character is an uppercase letter; otherwise, FALSE.
Remarks
IsUpper() is the inverse of IsLower().  Both IsUpper() and IsLower() relate to the Upper() and Lower() functions, which actually convert uppercase characters to lowercase, and vice versa. This function is nation-dependent.
Examples
These examples illustrate IsUpper() applied to various values:
X#
1? IsUpper("AbCdE")                    // TRUE
2? IsUpper("aBCdE")                    // FALSE
3? IsUpper("$abcd")                    // FALSE
4? IsUpper("8ABCD")                    // FALSE
See Also