Subject Re: dataset with boolean
Author Harvey
Hi Salvatore
This seems to work. I didn't try it, though I thought of it, simply
because I was sure all rows would have the combo disenabled (and I
thought I tried this once before some time ago).

Now I need to Set a default value in the Query that uses the lookup
and reflect this in the LookUp by forcing it to change. If there are
ideas for this it would be appreciated.

Thanks
Harvey

--- In IBObjects@yahoogroups.com, "Salvatore Besso" <s.besso@m...>
wrote:
> hello Harvey,
>
> maybe you can use an AfterScroll event for your query:
>
> begin
> MyLookupCombo.Enabled := MyQuery.FieldByName
('RELEVANT').AsBoolean
> end;
>
> Remember that to use the AsBoolean property you have to define
that field as
> Boolean in the ColumnAttributes property of the query:
>
> RELEVANT=BOOLEAN
>
> or, if you want to specify also the Boolean values the field can
assume:
>
> RELEVANT=BOOLEAN=1;0
>
> or
>
> RELEVANT=BOOLEAN=T;F
>
> or whatever... The True value is the first.
>
> HTH
> Salvatore