The FLDNAME function returns the name of a field pointed to by an index for a given record alias.
Category
Record
Syntax
*FLDNAME(REC_ALIAS*, index)*
*FLDNAME('<recname>' | variable *, index *)*
Parameters and Descriptions
| Parameter | Description |
|---|---|
| <recname> |
Resolves at runtime to a string and represent the record name used to locate the record alias in the description of the input datastore. |
| index |
An index pointer to a given field within the specified record alias of the input datastore. |
Example
Return the name of a field pointed to by an index for a given record layout.
V_FIELD_NAME = FLDNAME(RECNAME(INPUT DATASTORE), V_COUNTER)