[Tutor] PythonCard error checking
Roy Chen
roychenlei at gmail.com
Mon Dec 24 16:02:15 CET 2007
Hello everyone,
I've just started trying PythonCard to build a simple GUI for a little
application I'm writing.
Just wondering if anyone knows the "proper" way to do some simple error
checking:
for example, I have a textField, and I wish to check that only integers
within a certain
range are entered into it.
I know I can just enclose that block of code in a try .. except clause, just
that I'm not sure
what to do once I've caught say, a ValueError exception. It certainly would
not be a fatal
error and I would like to prompt the user to re-enter the value, but how
should I return to
that point of program execution?
Any help from the PythonCard gurus would be appreciated. Happy holidays!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20071225/735f191a/attachment.htm
More information about the Tutor
mailing list