> c) See FldCompactText API in the docs. It will shrink the record so it
> doesn't waste any extra space.

I figured out my issue.  It seems as though it's allocating (growing the
record) in 16 byte increments.  Which is fine, just not what I expected.

It still appears to me that it's not actually resizing a record smaller,
though I haven't fully tested it other than checking MemPtrSize(recP); which
is the pointer I get from locking the handle that DmOpenRecord gives me.

looking at this size (if this is accurate) tells me it's NOT being
compacted/shrunk.  

*Again* these are my early observations and simply may not be accurate as i
can't believe that a memopad record always stays the same size, or rather
stays equal to the largest size it's been resized to.

-MD

-- 
Matt Disher
[EMAIL PROTECTED]


> From: Peter Epstein <[EMAIL PROTECTED]>
> Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Date: Fri, 12 Apr 2002 10:25:18 -0700
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Subject: RE: ? about fldSetText & edit in place
> 
> a) True, as far as I know - the record will grow as needed.
> b) I don't think so. It should work even if there is more stuff after the
> field text in the record.
> c) See FldCompactText API in the docs. It will shrink the record so it
> doesn't waste any extra space.
> -- 
> Peter Epstein
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/support/forums/
> 


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

Reply via email to