IsUpper Function | |
Determine if the leftmost character in a string is uppercase.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax FUNCTION IsUpper(
pszString AS STRING
) AS LOGIC
public static bool IsUpper(
string pszString
)
Request Example
View SourceParameters
- pszString
- Type: String
The string to examine.
Return Value
Type:
Logic
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:
1? IsUpper("AbCdE")
2? IsUpper("aBCdE")
3? IsUpper("$abcd")
4? IsUpper("8ABCD")
See Also