Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

ALPHA

Description

This function will check that an expression consists entirely of alphabetic characters. It is used as:

ALPHA(expression)

Where expression can return a result of any type. 

The ALPHA function will then return TRUE (1) if the expression consists entirely of alphabetic characters else returns FALSE (0) if any character in expression is non alphabetic. 

For example: 

Abc = "ABC"
IF ALPHA(Abc) THEN
    CRT "alphabetic"
END ELSE CRT "non alphabetic"


Note:

Alphabetic characters are in the set a-z and A-Z, and any characters which do note fall in that set will be evaluated according to the Unicode standard if the ALPHA function is in international mode.


Go back to jBASE BASIC

Was this article helpful?