Hi,

> I am trying to build a function that will return the contents of a field
> (basic).  The trouble is that all the examples I have found are void
> functions that do not return anything.
> 
> Question #1: when I unlock the handle "h", does that invalidate the pointer
> to the text string so that it cannot be reliably returned?
Yes.

> Question 2: If that is the case, how do I work around it?
Why not return the handle instead? Other solution: let the user pass a
buffer to your function, and then copy the contents of the field into
this buffer.

cu
Urs

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

Reply via email to