Function IsUpper() Foundation

Tests whether a character string begins with an upper case letter.

Syntax
IsUpper( <cString> ) --> lUpperCase
Parameters
<cString>
<cString> is a character string expression.
Return

When the first character in <cString> is an upper case letter, IsUpper() returns the value .T. (true), otherwise it returns .F. (false).

Description

The character function IsUpper() tests whether the first character in a character string is upper case. It recognizes characters from "A" to "Z". If the first character is a digit, blank space, punctuation mark or other graphic character, IsUpper() returns the value .F. (false).

Language dependent special characters like , or identified as upper case letters when the appropriate collation table is selected.

The result depends on SET COLLATION and can be manipulated by LocaleConfigure() .

Examples
IsUpper()
// The example shows various results of the function IsUpper(). 

PROCEDURE Main 

   ? IsUpper("Xbase++")             // result: .T. 
   ? IsUpper(" ber")                // result: .F. 
   ? IsUpper("0.nothing")           // result: .F. 
   ? IsUpper("Zeropointnothing")    // result: .T. 

RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.