See the forum archives - the issue of validation has been discussed before.
It's really a violation of the overall UI of the Palm to do validation when
the user tries to exit your application. The user doesn't think about saving
or quitting on the Palm, but rather expects to be able to switch to any
other application at any time. Of course, your application is asked to stop
running when the user does this, so it would be possible to detect this
appStopEvent and present a dialog, but I advise against it. It's fine to
validate when the user invokes an action within your application, but not
when the user chooses to use some other application. For example, you might
have a button that validates all data entered so far.
--
Peter Epstein
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/