Skip to main content
Version: Next

Field

Field ( tableNum ; fieldNum ) -> fieldPtr  
Field ( fieldPtr ) -> fieldNum

ParameterTypeDescription
tableNumIntegerTable number
fieldNumIntegerField number
fieldPtrPointerField pointer
Field ( fieldPtr ) -> fieldNum
ParameterTypeDescription
fieldPtrPointerField pointer
fieldNumIntegerField number

Description

The Field command has two forms:

  • If you pass a table number in tableNum and a field number in fieldNum, Field returns a pointer to the field.returns the field number of the field.

Example 1

The following example sets the fieldPtr variable to a pointer to the second field in the third table:

 FieldPtr:=Field(3;2)

Example 2

Passing fieldPtr (a pointer to the second field of a table) to Field returns the number 2. The following line sets FieldNum to 2:

 FieldNum:=Field(FieldPtr)

Example 3

The following example sets the FieldNum variable to the field number of [Table3]Field2:

 FieldNum:=Field(->[Table3]Field2)

See also

Field name
GET FIELD PROPERTIES
Last field number
Table

Properties

Command number253
Thread safe