Hal Mueller wrote in message <34057@palm-dev-forum>...
>
>At 12:09 AM -0800 12/27/00, Matt Mason wrote:
>>Why does it make a difference if I gather the data before SAVE is tapped
or
>>when the item is edited?
>
>Because the APIs are designed to work that way.
>
>In general you should be responding to events as they happen. In a
>simple form it might not matter, but in a more complicated form where
>some settings/values are legal only if certain other controls are set
>a certain way, you'll go bananas trying to query each UI element's
>text. Use the events you're getting, and you'll be happier.
>
Either methodology works. It should be possible to leave all
the data in fields & controls until the "OK" button is tapped.
He mentioned the real problem in an earlier msg: he was not
locking the pointer that he gave to the control. Anything you
give to a control w/ CtlSetLabel MUST remain in scope and
locked while the control has it.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/