Subject | Re: [IBO] Fields[xx].value - unidentifyed type: 14 |
---|---|
Author | Jason Wharton |
Post date | 2001-01-03T06:09:25Z |
> Yes, but one can try in the form's private section the declaration:Yes, that is true. I do that and should have thought of it. Except most of
>
> 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.
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