LoadFromFile error after SaveToFile

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
linteli
Posts: 5
Joined: Thu 01 Feb 2007 10:49

LoadFromFile error after SaveToFile

Post by linteli » Tue 06 May 2008 13:01

I use Delphi 7 and DAC MySQL 5.20.1.15. (French version)

I have a MyQuery component and after MyQuery.execute i do MyQuery.SaveToFile('file.xml').
It work's fine.

After i try to reload the data whith a TVirtualTable component, i do :
VirtualTable.LoadFromFile('file.xml') and the have an error :
EConvertError "true" is not a correct boolean value

Do you know why ?

Thank's

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 08 May 2008 11:24

We can not reproduce the problem.
Please send a complete small sample to dmitryg*crlab*com to demonstrate it, including a script to create and fill table.

linteli
Posts: 5
Joined: Thu 01 Feb 2007 10:49

Post by linteli » Wed 14 May 2008 09:38

I solve the problem by recreating a sample application.

For a particular need, in my application i had changed the value of FalseBoolStrs and TrueBoolStrs to :

FalseBoolStrs[0]:='0';
TrueBoolStrs[0]:='1';

and that is what caused the problem.

Thank's

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 14 May 2008 14:34

It is good to see that this problem has been solved.

Post Reply