>Sorry, I forgot to mention that the input of my textbox is always character.
>So, when I put in 123 the value of my textbox is '123' and then I take the numeric value with the val() function. That's simple. Problem begains when the user puts in '123 piano'. As the val() function returns 123.00, the program thinks he's dealing with only digits, which is obviously not true. Is there an easy way (without having to check each character seperately)to detect that the input exists of digits and characters ??
Hans,
Yuri provided you with an answer
IF TYPE(textbox.value) = "N"
ELSE
ENDIF
--sb--