> From: Justin Felker
>
> Please bear with me while I attempt to explain my problem.  I am having a
> bit of trouble from a conceptual angle with saving and retrieving
> data.  So
>
> [snip]
>

You are correct that you can't just save pointers in the database and expect
them to be useful the next time your app runs.  What you need to do is
*copy* your data to the database.

One simple way to do this is to use a structure such as this:

typedef struct {
  Char Name[NAMELEN];
  Char Address[ADDRESSLEN];
  Char Company[COMPANYLEN];
  ...
} MeetingType;
>

Then when you fill these vars with data and copy them to the database, you
will have something meaningful to read the next time your app runs.

There are better ways to do this, especially if you need to conserve space
(which you almost always do on a Palm device!).  You can see more examples
by looking at the web preview of Neil Rhodes' book "Palm Programming - The
Developer's Guide" which you can find by looking at the documentation
section of http://www.palmos.com/dev/ , or by purchasing that book or
another.




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to