The FLDVALUE function returns contents of field pointed to by an index for a given record alias. Accepts an index which points to the position of a field in the current record. The contents of the field are copied to an output variable.
Category
Record
Syntax
*FLDVALUE(REC_ALIAS*, index)*
*FLDVALUE('<recname>' | variable *, index *)*
Parameters and Descriptions
Parameter | Description |
---|---|
<recname> |
Resolve at runtime to a string and represent the record name used to locate the record alias in the description of the input datastore. |
index |
Index should be an index pointer to a given field within the specified record alias of the input datastore. |
Example
String numeric value used as an index into current record.
V_VALFIELD = FLDVALUE(RECNAME(CDCIN), V_INDEX)