User Tools

Site Tools


isalpha_return_alphabetic_character_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== ISALPHA (return alphabetic character) ====== Previous pageReturn to chapter overviewNext page

ISALPHA(// string //)

blk2blue.jpg

ISALPHA Returns whether the string passed to it contains an alphabetic character.
string The label of the character string to test. If the string contains more than one character, only the first character is tested.

The ISALPHA procedure returns TRUE if the //string //passed to it is alphabetic (an upper or 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'            !ISALPHA returns true**

** IF **ISALPHA**(SomeString) **

**  X#= MESSAGE('Alpha string')**

** END**

** SomeString = '1'            !ISALPHA returns false**

** IF **ISALPHA**(SomeString) **

**  X#= MESSAGE('Alpha string')**

** ELSE**

**  X#= MESSAGE('Not Alpha string')**

** END**

See Also:

ISUPPER

ISLOWER

NUMERIC

LOCALE

Environment Files

isalpha_return_alphabetic_character_.htm.txt · Last modified: by 127.0.0.1