Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-02

DataSource State not always current

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alejandro Gonzalo

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.freepascal.org/pipermail/lazarus/attachments/20130226/b68050ef/attachment.html>

Reply by email