Menu

Fieldtype Problem

Help
2003-11-02
2003-11-03
  • Jürgen Knill

    Jürgen Knill - 2003-11-02

    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

     
    • Paul Gilbert

      Paul Gilbert - 2003-11-02

      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.

       
    • Jürgen Knill

      Jürgen Knill - 2003-11-03

      Thanks now it works

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.