RDD

FieldGet()

Retrieve a field value by position

Syntax

Signature
FieldGet( nField ) --> ValueField

Arguments

nField

One-based field position.

Return value

The value of the selected field, or NIL for an invalid position.

Description

FieldGet() reads a field from the current record using its ordinal position.

Notes

It does not change the record or field.

Example

FieldGet.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   QOut( "Field 1: " + RTrim( FieldGet( 1 ) ) )
   DbCloseArea()

RETURN

Output

See also