Home » U++ Library support » U++ SQL » DBF crash error while writing record
Re: DBF crash error while writing record [message #44620 is a reply to message #44617] |
Sun, 26 April 2015 13:59 |
|
mirek
Messages: 13980 Registered: November 2005
|
Ultimate Member |
|
|
forlano wrote on Sat, 25 April 2015 11:08Hi Mirek,
mirek wrote on Wed, 29 October 2014 10:09Hi,
the problem seems to be is that you are passing "String" Values for "double" ("N") columns. It crashes on Value conversion.
You will have to convert texts into correct Value types to make it work.
At last I solved the problem with "N" field (just use Integer field and cast the String with StrInt() ) but now appear problems for "D", date field.
How can I convert the String to Date and add it correctly in
values.Add( ... );
I have not find any method to cast a string in the date format used by dbfstream.
Thanks,
Luigi
Well, depends on date format... Use some combo of .Mid, atoi, StrInt .....
|
|
|
Goto Forum:
Current Time: Tue May 14 14:30:26 CEST 2024
Total time taken to generate the page: 0.01899 seconds
|