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