Subject | Re: dataset with boolean |
---|---|
Author | Harvey |
Post date | 2005-04-14T12:17:53Z |
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:
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,('RELEVANT').AsBoolean
>
> maybe you can use an AfterScroll event for your query:
>
> begin
> MyLookupCombo.Enabled := MyQuery.FieldByName
> end;that field as
>
> Remember that to use the AsBoolean property you have to define
> Boolean in the ColumnAttributes property of the query:assume:
>
> RELEVANT=BOOLEAN
>
> or, if you want to specify also the Boolean values the field can
>
> RELEVANT=BOOLEAN=1;0
>
> or
>
> RELEVANT=BOOLEAN=T;F
>
> or whatever... The True value is the first.
>
> HTH
> Salvatore