inelegant but fast and works:
try:
x = float(inputstring)/2
except:
return "%s is not a valid number" %(inputstring)
···
On Thursday 15 July 2004 05:06 am, you wrote:
Hello I am trying to check that the input in a wxtextCtrl is a valid
floating number, if not I want to show an error message that indicates
the input is not a valid floating point number. Here is what I have:
--
regards
kg
http://www.onlineindianhotels.net - hotel bookings reservations in over 4600
hotels in India
http://www.ootygolfclub.org