Subject Re: [IBO] Field persistence question
Author Svein Erling Tysvaer
At 21:38 24.11.2002 +1100, you wrote:
>It's a pity that there is no field persistence with the IB_ components. It
>means that the compiler can't catch your fieldname spelling errors - it's
>only caught at run time. Is there still no way but to use the fieldbyname or
>the fields array?
>Alan

Well, you can use a a variable of type TIB_Column (or something similar)
and programmatically do

TIB_Column1:=IB_Query1.FieldByName('SomeName');

Then you can use TIB_Column1.AsString or whatever. Note that the assignment
to TIB_Column1 must be done after Prepare. This doesn't eliminate the
possibility of runtime errors by using FieldByName, but reduces the chances
to once per prepare.

HTH,
Set