version 2004
PGSQL_GetFieldName (resID; fieldIndex; fieldName) Longint
| Parameter | Type | Description | |
| resID | Longint | Result ID returned by PGSQL_Execute | |
| fieldIndex | Integer | Field index in the result set (0 based) | |
| fieldName | String | Field name | |
| Function result | Longint | Error code (where 0 means no error) |
Description
The PGSQL_GetFieldName command gives the name of the field specified by the index of this field in the result set returned by PGSQL_Execute. It returns an error code (Longint) where 0 means no error.
resID is a Longint that corresponds to the result ID returned by PGSQL_Execute.
fieldIndex is an Integer that corresponds to the field index in the result set (0 based).
fieldName is a String that is returned which contains the field name.