Wednesday, September 8, 2010

jBase Command ALPHA

The ALPHA function will check that the expression consists entirely of alphabetic characters.

Command Syntax

ALPHA (expression)

Syntax Elements

The 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.

International Mode

When using the ALPHA function in International Mode it determines the properties of each character in the expression according to the Unicode Standard, which in turn describes whether the character is alphabetic or not.

Notes

Alphabetic characters are in the set a-z and A-Z.

Example

Abc = "ABC"
IF ALPHA (Abc) THEN CRT "alphabetic"
Abc = "123"
IF NOT (ALPHA(Abc)) THEN CRT "non alphabetic"

;*
;* Outputs:
;* alphabetic
;* non alphabetic
;*

0 comments:

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems