raisin_smiles
2009-04-21 11:40:20 UTC
The following code checks if the text field is populated with a number by attempting to convert the text field a string to a double.
It then catches a number exception and displays an error message.
I cannot construct the logic so it ONLY does the calculation if there has been NO errors.
Please see link below, used pastebin as formats the code nicely :-)
http://pastebin.com/m2297498a
Thanks
Rob