I would use this:

        if (MemHandleSize (oldhand) < 11)
        {
                MemHandleResize (oldHand, 11);
        }

Make sure the size is large enough! :)

Max

--- "Avilla, Dane" <[EMAIL PROTECTED]> wrote:

> Hope this helps . . .
> 
> -DGA
> 
> >     oldhand = FldGetTextHandle(fld);
> > 
> >     if (!(oldhand))         oldhand = MemHandleNew(11);
>       else 
>       if (MemHandleSize (oldhand) != 11)
>       {
>               MemHandleResize (oldHand, 11);
>       }
> >     fldptr = MemHandleLock(oldhand);
> > 
> >     StrIToA(fldptr, newtime);
> > 
> >     FldSetTextHandle(fld, oldhand);
> >     FldDrawField(fld);
> >     MemHandleUnlock(oldhand);
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/tech/support/forums/


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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