i have developed a smal application on Palm with PocketStudio. now i want to develop a conduit
but i have some problems with the datatypes,
the conditit reads the first 4 records an then i get an EConvertError r in the PalmDateToDateTime function. i don't understand this i think the records on the palm are all the same structure
can any tell me what i have to do ?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A conversion error means that the raw data the conduit read for your date field didn't represent a valid date.
The best way to deal with this is what I recommend to other people having trouble with field definitions - put a breakpoint in the RemoteRecordToLocal method. This will let you look at the raw data coming into the conversion from your Palm database. Generally speaking, it's not that hard to examine the data and see how the fields are represented in the data (the calculator application is usefull for decimal to hex conversion). It's generally the case that it's fairly easy to compare the position of each field in the raw data against your own field definitions to make sure they match.
Since you're reading the first few records correctly?, then it's likely to be either: a variable length field is being used which just happens to be what you expect for the first couple of records, or a special constant being used in the date field for the fifth record that the date conversion routines don't know about.
Hope this helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have developed a smal application on Palm with PocketStudio. now i want to develop a conduit
but i have some problems with the datatypes,
the conditit reads the first 4 records an then i get an EConvertError r in the PalmDateToDateTime function. i don't understand this i think the records on the palm are all the same structure
can any tell me what i have to do ?
Thanks
A conversion error means that the raw data the conduit read for your date field didn't represent a valid date.
The best way to deal with this is what I recommend to other people having trouble with field definitions - put a breakpoint in the RemoteRecordToLocal method. This will let you look at the raw data coming into the conversion from your Palm database. Generally speaking, it's not that hard to examine the data and see how the fields are represented in the data (the calculator application is usefull for decimal to hex conversion). It's generally the case that it's fairly easy to compare the position of each field in the raw data against your own field definitions to make sure they match.
Since you're reading the first few records correctly?, then it's likely to be either: a variable length field is being used which just happens to be what you expect for the first couple of records, or a special constant being used in the date field for the fifth record that the date conversion routines don't know about.
Hope this helps.
Thanks now it works