Syntax
FieldPos( cFieldName ) --> nFieldPosArguments
cFieldName
Field name.
Return value
One-based field position, or zero when the name is not present.
Description
FieldPos() looks up a field name in the current work area's structure.
Notes
The lookup does not move the record pointer.
Example
PROCEDURE Main()
DbUseArea( .T., , "people.dbf", "People" )
QOut( "NAME position: " + LTrim( Str( FieldPos( "NAME" ) ) ) )
DbCloseArea()
RETURNOutput