r.array()

Read(620) Label: get field value, sequence,

Description:

Get the field values from a record sequentially and return them as a sequence.

Syntax:

r.array(Fi,…)

Note:

The function gets the values of Fi,… fields of the record r in order and returns them as a sequence. Get all the field values when parameter Fi is omitted.

Parameters

r

A record

Fi

Field name

Return value

A sequence

Example

 

A

 

1

=demo.query("select * from  SCORES")

Return a table sequence:

2

=A1(1).array()

Get the first record from A1 and return its all field values as a sequence:

3

=A1(1).array(STUDENTID,SCORE)

Get the first record from A1 and return values of STUDENTID field and SCORE field as a sequence: