STR_ISUPPER

Use the STR_ISUPPER script function to check whether all characters in a specified string are uppercase. Special characters and numbers within the string are ignored. You can pass the string directly using single or double quotation marks, or use a script variable.

Syntax

STR_ISUPPER (String)

Parameters

Parameter Description Format
String The alphanumeric string to check Script literal or script variable

Return Codes

Return Value Condition
Y All characters in the string are uppercase
N The string contains no letters, or at least one lowercase letter

Examples

The following example reads an entry from a VARA object and checks whether it is written in uppercase.

:SET &VAR# = GET_VAR(VARA.DB, "TEST", 1)

:SET &CHECK# = STR_ISUPPER(&VAR#)

:IF &CHECK# EQ "Y"

: P "STR_ISUPPER(&VAR#) = Y"

:ENDIF

See also: