Products Downloads


French version


 


ADELIA

VADELIA

SADELIA

WADELIA

EADELIA

(I/B)

(I/B)

(B)

(I/B)

(B)


Description

This predefined function is used to check whether a character string is completely alphanumeric.

A field is alphanumeric if it contains only characters from ranges [a-z] and [A-Z], and [0-9].


Syntax

Result = &ALPHANUMERIC(String)


Parameters


Description

Contents

Controls

Result

One-position alphanumeric variable.

Possible values:

0 Non-alphanumeric

1 Alphanumeric


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 alphanumeric field.


Example

STRING = '1A2B3C4D5E'

TEST_ALPHA = &ALPHANUMERIC(STRING)

* TEST_ALPHA is equal to 1 (alphanumeric).
*

* if STRING = 'A1C*D-EFG$', TEST_ALPHA is equal to 0 (non alphanumeric).
* if STRING = 'A1B2Cd ', TEST_ALPHA is equal to 1 (alphanumeric).


List of predefined functions by topic


↑ Top of page

  • Aucune étiquette