Richard Hartman wrote in message <7003@palm-dev-forum>...
...
>Now for a followup question on handles. You can
>attach a handle to a database (DmAttachRecord).
>Are handles attached in this way "frozen". That is,
>if I build an intricate structure with objects containing
>handles referencing other objects, then attach all
>of these handles to a database, with the structure
>remain valid the next time I read it out of the database,
>or do I have to have some other means of finding
>the pieces and how they were linked?
>
>F'r instance: an address book that supports
>multiple addresses per entry. I might put an
>array of "addressEntry" handles in the "personEntry"
>structure. So I create some addressEntry handles
>off the heap and attach them to the database. Can
>I store the personEntry record w/ the handles and
>expect everything to be ok, or would I be better off
>getting the record index of the address entries and
>saving -them- in the person entry?
>
Can anybody answer this? In short the question
is whether you can save a handle to a db record
and expect it to be valid when you read the record
back, given that the handle being saved points to
a chunk that is attached to some database?
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html