• Log in or sign up for an account here: https://www.sythe.org/login

Checking If Text Input Is Numeric

halojunkie

Active Member
Joined
Dec 17, 2005
Sythe Gold
0
Messages
232
Location
Look Above You!
Checking If Text Input Is Numeric
How do I check if text input to a text box is numeric?

i tried:

Code:
private sub command1_click()
if text1.text is numeric then
blah
else
blah
end if
end sub

and it didnt like it
 
Checking If Text Input Is Numeric
wrong syntax. i believe there's a function called isNumeric, so:
Code:
private sub command1_click()
if isNumeric(text1.text) then
blah
else
blah
end if
end sub

would probably do it.
 
Checking If Text Input Is Numeric
thanks. i knew it was sumthin like that
 
Runescape Gamblingrunescape gambling
Back
Top