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!
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to