Menu

appInfo Block not written

Help
Anonymous
2004-02-12
2004-03-17
  • Anonymous

    Anonymous - 2004-02-12

    Hello !

    When creating a table with CreateTable method, the appInfo block was not written in the PDB file.
    My problem is in the palm : I cannot read field values !

    How can I force the writing of this appInfo Block ???

    Thanx a lot !

     
    • Paul Gilbert

      Paul Gilbert - 2004-02-23

      Well, CreateTable creates the table initially, but doesn't actually open it. The AppInfo block is only written to the table if the table is open. You should therefore follow the following steps:

      * Create the table
      * Open it
      * Write the data to the AppInfo block
      * Close it

      Paul.

       
    • Anonymous

      Anonymous - 2004-02-24

      Thank you.

      But what is the strucutre of the AppInfo Block in a pdb table ?
      I need to write all the fields defined in the table component to the appInfo Block in order to access these fields by their name on the palm.

      How can I do this ?

       
      • Paul Gilbert

        Paul Gilbert - 2004-03-17

        Hi there,

        Sorry I missed your message. The fact is, that the AppInfo block of a Palm table doesn't have any structure. It contains whatever raw binary you store in it. There's certainly no inbuilt Palm functionality to use the contents of the AppInfo block as field names for the contents of records, since the Palm doesn't have any concept of fields in the records.

        You may be using some custom development tool that's simulating a normal database system of fields on the Palm to make development easier for you, but in that case, it's up to you to find out what format it wants the AppInfo block in, and simulate it yourself; since the conduit library is written for synchronising any Palm table, I can't say what particular format your development tool is expecting without having used it.

        Paul.

         
    • Anonymous

      Anonymous - 2004-03-17

      Nobody wants to give me a response ?

       

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.