Xand3r Posted November 21, 2008 Posted November 21, 2008 $test="1234" MsgBox(0 , "" , _isnum($test)&":"&IsNumber($test)) Func _isnum($number) $len=StringLen($number) $string=StringFormat("[\\d]{%d}", $len) Return StringRegExp($number , $string , 0) EndFunc Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro
wraithdu Posted November 21, 2008 Posted November 21, 2008 But that's not what IsNumber() does. IsNumber() checks the base type of the variable. What you're comparing to is StringIsDigit() which checks if a string contains only numbers 0-9.
Xand3r Posted November 22, 2008 Author Posted November 22, 2008 ok.... i wish i knew that 3 hours ago ))))))))) Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now