[Tutor] PythonCard error checking
roychenlei at gmail.com
Mon Dec 24 16:02:15 CET 2007
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
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...
More information about the Tutor