Products Downloads


French version


 

 

ADELIA

VADELIA

SADELIA

WADELIA

MADELIA

(I/B)

(I/B)

(B)

(I/B)

(I)

 

Description

This predefined function is used to check whether the character string is alphabetic only.

A field is alphabetic if it contains only characters from ranges [a-z] and [A-Z].

 

Syntax

Result = &ALPHABETIC(String)

 

Parameters

 

Description

Contents

Controls

Result

One-position alphanumeric
variable.

Possible values:

0 Non-alphabetic

1 Alphabetic

 

String

Alphanumeric constant or variable.

Character string to be checked.

Mandatory parameter.

 

Notes:

    • If there are blank characters at the end of the string, those are ignored on execution.
    • If the field contains blank characters only, it is considered to be an alphabetic field.


Example

STRING = 'ABCDEFGHIJ'

TEST_ALPHA = &ALPHABETIC(STRING)

* TEST_ALPHA is equal to 1 (alphabetic).
*

* if STRING = 'A1CDEFGHIJ', TEST_ALPHA is equal to 0 (non alphabetic).
* if STRING = 'ABCdEfGhIJ', TEST_ALPHA is equal to 1 (alphabetic).

 

List of predefined functions by topic

 

↑ Top of page

  • Aucune étiquette