Try OpenEdge Now
skip to main content
ABL Essentials
Using Basic ABL Constructs : Defining an IF-THEN-ELSE decision point : ABL Functions : List functions
 
List functions
The functions described in the following table operate on lists. All the list functions are one-based, that is, the first element in a list is considered to be element 1, not 0.
Table 6. List functions
Function
Arguments
Returned value
ENTRY
element AS INTEGER, list AS CHARACTER, delimiter AS CHARACTER
CHARACTER — The nth element in a delimited list, where n is the value of the element argument. The delimiter is optional and defaults to comma.
LOOKUP
element AS CHARACTER, list AS CHARACTER, delimiter AS CHARACTER
INTEGER — The numeric (one-based) location of the element within the list. The delimiter is optional and defaults to a comma. The function returns 0 if the element is not in the list.