Are you adding 1 to MemHandleResize to add space for the NULL at the end of the string?
e.g. newhandle = MemHandleResize(sizeof(oldhandle)+1); ----- Original Message ----- From: "Oskie" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[email protected]> Sent: Friday, July 21, 2000 5:55 AM Subject: Please help re: editing fields > Hi! I've posted my problem before, but I'm still having problems editing my > fields. When I update a field longer than it's current length, the system > can't handle it. I've tried the following methods to no avail. > > 1. I tried padding the field with spaces, so that it would have a fixed > length. So there would be no need to resize the pointers. But I had > problems trimming the spaces before displaying in the text field. > > 2. I used the method in the mail application. It uses MemHandleResize to > resize the record length. But when I did this I encountered a DmWrite > Error. > > I really need your help. Any suggestion is appreciated. Thanks a lot! > > Oskie > > > > -- > 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 ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
