In Delphi 3.02 this ALWAYS works, but only sometimes with Laz 1.0.6 for Win7 64bit, both 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

Is this a bug in Lazarus or ADS (or a "feature" <g>)

asked 01 Mar '13, 16:13

Ule's gravatar image

Ule
31559
accept rate: 0%

When it "doesn't work", what is the behavior? Do you get any error, warning, message, etc?

(31 May '13, 09:15) Jed Thomet

No error message, just that unlike Delphi it may not use the current State. I think the problem is with Dataset within FreePascal 2.6.0. I posted here mainly to warn those coming to FreePascal/Lazarus from Delphi that there is this incompatibility.

(01 Jun '13, 15:05) Ule

No error message, just that unlike Delphi it may not use the current State. I think the problem is with the Dataset within FreePascal 2.6.0.

link

answered 01 Jun '13, 15:02

Ule's gravatar image

Ule
31559
accept rate: 0%

Your answer to the original question.
If responding to a request for additional information, please edit the question or use the comment functionality.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8

Asked: 01 Mar '13, 16:13

Seen: 2,130 times

Last updated: 01 Jun '13, 15:05

Advantage Developer Zone Contact Us Privacy Policy Copyright Info


Powered by Advantage Database Server and OSQA
Disclaimer: Opinions expressed here are those of the poster and do not necessarily reflect the views of the company.