Advantage Client Engine
Retrieves the number of a field in a table
UNSIGNED32 |
AdsGetFieldNum (ADSHANDLE hTable, UNSIGNED8 *pucFldName, UNSIGNED16 *pusNum); |
hTable (I) |
Handle of table or cursor. |
pucFldName (I) |
Name of field. |
pusNum (O) |
Return field number corresponding to given name. |
The field number is an index in the table of fields from first to last, with the index of the first field being 1.
When using SQL statements the table handle parameter can be replaced with a cursor handle. In this situation AdsGetFieldNumber will return the column number in the rowset.