array()

Read(242) Label: array,

Here’s how to use array() function.

r .array()

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")

 

2

=A1(1).array()

3

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

[1,84]