Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > IN-ALPHA

 

 

Purpose

IN-ALPHA tests whether a value is contained within a specified alphanumeric or wide string.
 

Syntax

IF value IN-ALPHAstring’ THEN statement;
 

Operation

value is an alphanumeric or wide variable to be searched for.
string
 is an alphanumeric or wide variable to be searched (this may also be a value variable or a scratch variable).  It must be of the same type, alphanumeric or wide, as value.
 

Remarks

IN-ALPHA matches are valid for alphanumeric or wide variables only.  The specified alphanumeric or wide string may also be a value variable or a scratch variable.
 

Example

IF $OPTION IN-ALPHA ‘ACDL’ THEN FLD(15);

The branch to field 15 occurs if $OPTION contains

1 character   - value A, C, D or L
2 characters - value AC, CD, or DL
3 characters - value ACD or CDL
4 characters - value ACDL
 

Comment on this topic

Topic ID: 520067

 
 
 

Table of Contents

Index

Glossary

-Search-

Back