LoadFromFile causes "Dataset not in edit or insert mode" error

Discussion of open issues, suggestions and bugs regarding Virtual Data Access Components for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
starhu
Posts: 34
Joined: Thu 13 Aug 2009 12:13

LoadFromFile causes "Dataset not in edit or insert mode" error

Post by starhu » Fri 21 Dec 2018 21:08

I save the data like this:
MyVirtualTable.SaveToXML(MyFileName);

... and when later load the data:
MyVirtualTable.LoadFromFile(MyFileName);

... I get "Dataset not in edit or insert mode" error.

What should I do?

Thank you.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: LoadFromFile causes "Dataset not in edit or insert mode" error

Post by MaximG » Sat 22 Dec 2018 09:30

We tested the operation of our product according to your description and found no problems. For further investigation, please compose and send us the simplest sample, execution of which causes the issue. It is convenient to do using the e-support form https://www.devart.com/company/contactform.html

starhu
Posts: 34
Joined: Thu 13 Aug 2009 12:13

Re: LoadFromFile causes "Dataset not in edit or insert mode" error

Post by starhu » Sun 23 Dec 2018 20:13

The dataset was connected with a Tedit which triggered an unwanted event.
Sorry to have bothered you with this.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: LoadFromFile causes "Dataset not in edit or insert mode" error

Post by MaximG » Wed 26 Dec 2018 10:18

We are glad to see the problem resolved. Please don't hesitate to contact us with questions concerning our product usage.

Post Reply