Subject Re: [IBO] Getting column reference from TIB_Cursor?
Author Helen Borrie
At 09:49 PM 29/04/2003 -0700, you wrote:
>What property or method do you use to retrieve a TIB_Column from a
>TIB_Cursor, by index, rather than by name?
>
>For instance, Let's say, I want to get a pointer to the TIB_Column that
>represents the first column in the data set. With TIBO_Query, I'd use:
>
>MyQuery->Fields->Fields[0]
>
>What is the equivalent in TIB_Cursor?

The same - but only if the dataset is prepared. The FieldByName method
causes the dataset to be prepared, if it is not already; with Fields[n] you
need to test and, if necessary, call Prepare before trying to access the
column.

Helen