Subject Re: TIB_CheckBox delay
Author s.beames@mailbox.gu.edu.au
Thanks again Geoff,
> You could do the same thing for the Checkbox...
> IB_CheckBox->Field->AsBoolean
>
>
> > > My preference when in a data component is to use data
> > > properties/methods.
> >
> > Can do! (You mean something like (ClientsQry->FieldByName
> > ("ACCNTHLDR")->AsString == "T"), right?)
>
> Yes, although if the field has been defined as boolean;
> ColumnAttributes contains..
> FieldName=BOOLEAN=T,F
>
> then you can simply use
> ClientsQry->FieldByName("ACCNTHLDR")->AsBoolean

Yes, these both work fine! I won't use the Checked property.

> > > If you are worried about the performance of using
> > > FieldByName, you could setup column references in
> > > OnPreparedChanged.
> >
> > I'm not sure what you're suggesting here.
> > Can you elaborate please?
>
> Firstly, the following description is only really worthwhile if the
> event is going to be called many times in a tight loop. If it is
-snip->
> Geoff Worboys
> Telesis Computing

Gotcha! Thanks for the detailed explanation! I'm adding it to my
stash. :-)

Cheers,
Steve