Subject RE: [IBO] Column ordering
Author Paul Vinkenoog
Hi,

> You can get the actual grid column order using the TIB_Grid's
> GridFields prop. Iterate the GridFields from 0 thru GridFieldCount-1
> and you get the TIB_Column references. From there you can get
> FieldName, DisplayLabel, FieldNo (0-based field number in the query,
> not necessarily in the grid), etc. etc.

To be more precise: TIB_Column.FieldNo *always* returns the 0-based
field number as it is in the SQL, regardless of any ordering you may
have specified in TIB_Query.FieldsIndex.

Grtz,
Paul