> I'm having some trouble with handles. I have a field that I did not
> mark as editable in the Constructor window. This field is going to
> be used for a resulting calculation. When I try to update the field
> with the resulting calculation I receive an error message from POSE
> saying it is an invalid handle. But, if I mark it as an editable field
> and actually put some text in the field before I fill it with the
calculated
> value, it works fine. What gives? Do I need to initialize the handle
> with data or something?
Non-editable fields don't use handles because their contents aren't expected
to change. Therefore, the system just uses a text pointer. To update a
non-editable field, allocate and lock memory for your results, then use
FldSetTextPtr(). You do need to make sure that memory is valid until you
either close the form or change the pointer again with another call to
FldSetTextPtr().
--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/