DAC for MySQL

TMySQLDirectQuery.Methods.FieldIndexByName

Previous Next

Returns field index by its name.

Syntax:

function FieldIndexByName(aFieldName : string) : integer;

Description:

Function FieldIndexByName returns zero-based index of the field with name aFieldName.

See also:FieldsCount, FieldNames properties