The task that i'm trying to accomplish is to set an editable field's (text box) text. Now i've tried a few things, and i cant get it to work. I've narrowed my search of API calls down to FldSetText() and FldSetTextHandle(). However, these functions dont take char*'s like good little UI objects, they take MemHandles to the desired text.
I have no clue how to get a memhandle from a given piece of text. I've tried MemPtrRecoverHandle(), i've even tried casting (shudder). Nothing seems to work. Here's some psuedo code: FieldType* pField = (FieldType*)GetObjectPtr(MainTextField); char* pText = "hello world"; MemHandle hText; /* some function goes here to convert pText, into a MemHandle; */ /* hText = SomeFunction(pText) */ FldSetTextPtr(pField, hText); I'd love for this to work, if someone could plug in SomeFunction() for me -- or give me an idea of how to text a field's text. Thanks a bunch to everyone in this forum for helping me in my Palm OS infancy time =) -Michael -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
