Subject Re: [IBO] Fields[xx].value - unidentifyed type: 14
Author Jason Wharton
> Yes, but one can try in the form's private section the declaration:
>
> f: TIB_ColumnInteger;
>
> In the AfterPrepare event:
>
> begin
> f := Sender.FieldByName('name') as TIB_ColumnInteger;
>
> And later, after the dataset is open,
> f.Value will give you an integer, not a variant.
>
> The same trick applies to access the events of TIB_Column, since there're
> not persistent fields.

Yes, that is true. I do that and should have thought of it. Except most of
the time I do that I still leave them declared as TIB_Column and just use
the AsXXXX properties to get the same benefit.

Regards,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com