Subject | IB_ActionUpdate.pas |
---|---|
Author | Serge |
Post date | 2001-05-11T18:14:16Z |
I found errors in TIB_ActionPost.StateChanged and TIB_ActionCancel.StateChanged that prevent Enabled property from changing properly:
Instead of
Enabled := Assigned( ADataSource ) and
Assigned( ADataSource.DataSet ) and
( ADataSource.Dataset.NeedToPost ) and
( ADataSource.Dataset.State = dssSearch );
is should probably be
Enabled := Assigned( ADataSource ) and
Assigned( ADataSource.DataSet ) and
( ( ADataSource.Dataset.NeedToPost ) or
( ADataSource.Dataset.State = dssSearch ) );
--
Serge
Instead of
Enabled := Assigned( ADataSource ) and
Assigned( ADataSource.DataSet ) and
( ADataSource.Dataset.NeedToPost ) and
( ADataSource.Dataset.State = dssSearch );
is should probably be
Enabled := Assigned( ADataSource ) and
Assigned( ADataSource.DataSet ) and
( ( ADataSource.Dataset.NeedToPost ) or
( ADataSource.Dataset.State = dssSearch ) );
--
Serge