ISLOWER (return lower case character)

Top  Previous  Next

 

ISLOWER( string )

ISLOWER

Returns whether the string passed to it contains a lower case alphabetic character.

string

The label of the string to test. If the string contains more than one character, only the first character is tested.

The ISLOWER procedure returns TRUE if the string passed to it is a lower case letter and false otherwise. This is independent of the language and collation sequence. This procedure requires that CLACASE has been set in the application's environment file or through the LOCALE statement.

Return Data Type:

LONG

Example:

SomeString STRING(1)

CODE  

SomeString = 'a'         !ISLOWER returns true

IF ISLOWER(SomeString)

 X#= MESSAGE('Lower case string')

END

SomeString = 'A'         !ISLOWER returns false

IF ISLOWER(SomeString)

 X#= MESSAGE('Lower case string')

ELSE

 X#= MESSAGE('Not lower case string')

END

See Also:

ISUPPER

ISALPHA

NUMERIC

LOCALE

Environment Files