Yes, I can calculate the length of the record up to the beginning of the UInt16 array, but my problem is moving the pointer from the beginning of the record to that position.
If my struct is 40 bytes long and the total of all the packed strings is 91, the I need to move 131 bytes into the record. But since a UInt16 is 2 bytes long, it seems I can only move it in increments of 2. ie: arrayP += 65; This would move it 130 bytes, but I would still be off by one byte.. Thanks Jim "Markus Dresch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > How do I lock a UInt16* and move it over the struct > > and strings to get to the beginning of the UInt16 array? > > if you are storing null-terminated char arrays, simply retrieve the length > of the strings (StrLen) to calculate the offset of your UInt16 array. > > markus dresch (www.palmside.com) > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
