Subject Re: [IBO] Equivalent loop over all fields for all records: IB_Query/TQuery
Author Geoff Worboys
> What is the equivalent for TIB_Query?

The same, except that you get TIB_Column references and not TField
references. Oh, and the field count is obtained as either...

IB_Query.FieldCount (which is also available in TDataset stuff)
or
IB_Query.Fields.ColumnCount

To restrict yourself to "visible" fields check the
TIB_Column.Visible property. You will find that TIB_Column has
most of the same (or similar) properties as TField, plus a whole
lot more.

Depending on what you want in your output you may prefer to use
the TIB_Column.DisplayText property - to get preformatted output
(using any defined masks etc) rather than the raw string value
returned from AsString.

--
Geoff Worboys
Telesis Computing