Subject Re: dsEditModes
Author Marco Menardi
dsEditModes does not exists.
If you want to check if the dataset is in edit mode, you have to use:
dsEdit if using TDataset descendant (i.e. TIBOQUery)
dssEdit if using native controls (i.e. TIB_Query)

if State in [dsEdit, dsInsert] then Post;

regards
Marco Menardi

--- In IBObjects@yahoogroups.com, "dr_bentonquest" <bentonquest@m...>
wrote:
> Hi there,
>
> The following line:
>
> with quCambio do if (State in [dsEditModes]) then Cancel;
>
> Gets me this error:
>
> "ordinal type required".
>
> Is this related to IBObjects? I already included DB in my uses clause.
>
> Thanks in advance,
>
> -Benton