EXTRACT() |
![]() ![]() ![]() |
The EXTRACT() function extracts a field, value or subvalue from a dynamic array.
Format
EXTRACT(dyn.array, field {, value {, subvalue}})
where
The specified field, value or subvalue is extracted from the dynamic array and returned as the result of the EXTRACT() function. This function is identical in effect to the alternative syntax of dyn.array<field {, value {, subvalue}}>
Example
AMOUNT.DUE = EXTRACT(INVOICE.REC, 3)
This statement extracts field 3 from INVOICE.REC, assigning the result to variable AMOUNT.DUE.
See also: DEL, DELETE(), FIND, FINDSTR, INS, INSERT(), LISTINDEX(), LOCATE, LOCATE(), REPLACE() |