Subject | Re: [IBO] PreventScrolling |
---|---|
Author | guido.klapperich@t-online.de |
Post date | 2001-04-30T00:06:26Z |
> Presuming that CTCSQuery was the lookup dataset I think you needI always get an exception, when I try to scroll. I thought, setting CanScroll
> something like...
>
> procedure TContactsDataModule.CTCSQueryGetCanScroll(Sender:
> TIB_Dataset;
> var CanScroll: Boolean);
> begin
> // if the sender is a lookup dataset, only allow the sender to
> // scroll if the key/main dataset is not readonly.
> if (Sender.KeyDataset <> nil) then
> CanScroll:= not Sender.KeyDataset.ReadOnly;
> end;
to false, prevents the exception from being raised ?
Guido.