ENTRY statement
Used on the left-hand side of an assignment to set the
n
th element to some value.Syntax
element
An integer value that corresponds to the position of a character string in a list of values. If the value ofelement
does not correspond to an entry in the list, the AVM raises the ERROR condition. If the value ofelement
is the Unknown value (?
), ENTRY returns the Unknown value (?
). Ifelement
is less than or equal to 0, or is larger than the number of elements inlist
, ENTRY returns an error.list
character
A delimiter you define for the list. The default is a comma. This allows functions to operate on non-comma-separated lists. The delimiter must be only a single character. If you specify a string of more than one character, only the first character is used. If you specify a null string (""), a space character is used as the delimiter. If you use an alphabetic character, this delimiter is case sensitive.expression
ExampleThis procedure uses three ENTRY statements:
NoteThe ENTRY statement is double-byte enabled. It can insert an entry that contains double-byte characters into a specified list and the
character
delimiter can be a double-byte character.See also
OpenEdge Release 10.2B
|