EXTRACT


he EXTRACT function is an alternative method of accessing values in a dynamic array other than using the <n,n,n> syntax described earlier.

 

COMMAND SYNTAX

EXTRACT(expression1, expression2 {, expression3 {, expression4}})

 

SYNTAX ELEMENTS

expression1 specifies the dynamic array to work with and will normally be a previously assigned variable. The expressions 2 through 4 should all return a numeric value or a runtime error will occur and the program will enter the debugger. expression2 specifies the field to extract, expression3 the value to extract and expression4 the sub-value to extract.

 

EXAMPLES

A = "0"; A<2> = "1"; A<3> = "2"
CRT EXTRACT(A, 2)

Will display the value "1".


jBC