If isNumber(tAdd) = false then...

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin J
Sent: Wednesday, March 16, 2005 10:28 AM
To: rev
Subject: How to test for a number

How do you make an If check to check to see if a user has entered a
number and not a letter?
I can stop it from doing a divide by 0 doing this:

on mouseUp
put field"num1" into tAdd
put field"num2" into tAdd2
  if tAdd2 is 0 then
    answer "You can't divide by 0"
  else
    put tAdd/tAdd2 into field"sum"
    end if
end mouseUp

Thanks

Kevin
_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to