r .fname( i )

Read(212) Label: field serial number, field name,

Description:

Get the field names from records according to the serial numbers of these fields.

Syntax:

r. fname(i)

Note:

The function gets the name of the field whose serial number is i from record r. If no parameter is present, then return all field names in r.

Parameters:

r

Record

i

Serial number of a field

Return value:

Character strings or sequences

Example:

 

A

 

1

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

 

2

=A1(1).fname(2)

“NAME”, the name of the 2nd field in the first record is NAME..

3

=A1(1).fname()

Return a sequence comprising all field names of the 1st record in A1

 

Related functions:

T.fname()