PGSQL_GetFieldIndex

4D - Documentation   Français   English   German   4D For PostgreSQL, Command Theme List   4D For PostgreSQL, Command Alphabetical List   Back   Previous   Next

version 2004


PGSQL_GetFieldIndex (resID; fieldName; fieldIndex) Longint

ParameterTypeDescription
resIDLongintResult ID returned by PGSQL_Execute
fieldNameStringField name
fieldIndexIntegerField index in the result set
Function resultLongintError 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.


4D - Documentation   Français   English   German   4D For PostgreSQL, Command Theme List   4D For PostgreSQL, Command Alphabetical List   Back   Previous   Next