Query Reference Manual

Communicating Using Query : Setting Variables from the Data Server Responses
VAR varname EXTERnal GET token NEXT
where token is the token for the communication channel which was supplied by a successful EXTERNAL OPEN command (and stored in the token_var variable). The variable varname will be interpreted automatically as an array variable and each data item will be stored in a separate element of the array. (The PML SPLIT command is not required here; splitting is carried out automatically.)
will retrieve the next data record, which will progressively overwrite the current settings of the array element elements. For example,
VAR varname  EXTERnal GET token RESult
VAR varname  EXTERnal GET token HEADer
These commands always return the first row of the result of the last request sent to the data server identified by token (typically, but not necessarily, header information resulting from an SQL database SELECT command).

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo