[Lazarus] DataSource State not always current
Alejandro Gonzalo
parkingspace26 at yahoo.com
Tue Feb 26 21:28:26 CET 2013
In Delphi 3.02 this ALWAYS works, but only sometimes with Laz 1.0.6 for Win7 64bit w/ADS database:
with DBNavigator1.DataSource do if State in [dsEdit, dsInsert] then
This can be fixed in Laz by adding a variable to the var section like so: myState : TDataSetState;
And replacing the above with the following 2 lines:
myState:=DBNavigator1.DataSource.State;
with DBNavigator1.DataSource do if myState in [dsEdit, dsInsert] then
A. G.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130226/b68050ef/attachment-0002.html>
More information about the Lazarus
mailing list