SQL_FieldNameToNum Function

Retrieves a field index by name.

bool SQL_FieldNameToNum(Handle query, const char[] name, int &field)

Parameters

Handle query

A query (or statement) Handle.

const char[] name

Name of the field (case sensitive).

int& field

Variable to store field index in.

Return Value

True if found, false if not found.

Errors

Invalid query Handle or no current result set.