> > From: Peter Epstein <[EMAIL PROTECTED]> > > > > c) See FldCompactText API in the docs. It will shrink the > > record so it doesn't waste any extra space.
--- Then "Matt Disher (TiBook)" <[EMAIL PROTECTED]> wrote: > ... 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. It doesn't. Look at EditViewSaveRecord() in MemoMain.C and you'll see that it calls FldCompactText(). In fact, I believe most of your questions are answered in the docs for FldCompactText() which say: Purpose: Compact the memory block that contains the field�s text to release any unused space. Comments: As characters are added to the field�s text, the block that contains the text is grown. The block is expanded several bytes at a time so that it doesn�t have to expand each time a character is added. This expansion may result in some unused space in the text block. Applications should call this function on field objects that edit data records in place before the field is unlocked, or at any other time when a compact field is desirable; for example, before writing to the storage heap. __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
