The code bellow:
function isInt(input)
isInt = true
for i=1 to len(input)
d = Mid(input,i,1)
if Asc(d) < 48 OR Asc(d) > 57 then
isInt = false
exit for
end if
next
end function
I tried replacing with:
function isInt(input)
Set re = new RegExp
re.Pattern = "[0-9]"
isInt = re.test(input)
end function
But dont seem to work.
How do I solve the problem?.
Your help is kindly appreciated.
Regards
Eugene Anthony
*** Sent via Developersdex http://www.developersdex.com ***