Nevermind :)  The web page someone posted for good beginner books has an example of 
"offsetof", which should do the trick.  Thanks
anyways :)

Sam

Sam Charette wrote:

> I have a question I hope someone can answer.  I am having problems
> writing to a record in my database for some odd reason.  Gobbledegook
> ends up in the record after I write it (providing errors later on).
> What I did was I have an object that contains the data for the current
> record, and in DmWrite I used it as the source.
>
> I think my problem (and others I am having) might be because of this
> object, but to us DmSet or DmStrCopy I need to find the offset in the
> record where the data begins.  How can I do this?  Is there a function
> that I can call to get the offset of a data member of an object, or do I
> need to store the information elsewhere?
>
> Any help would be greatly appreciated :)
> Sam
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/


-- 
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