VB Script IsNumeric Function and the dollar sign
Posted on 2010-09-23
Hi - I have a classic ASP page that uses VBScript and I need some help.
I have a form that allows a user to enter a budget amount. I want to insure the value the user enter EXCLUDES the dollar sign ($) and the comma (,).
I wrote this to test the value entered...
If NOT IsNumeric(strBudget) THEN
.... but IsNumeric allows the dollar sign and comma and returns True.
Is there another function that I could use to test the value entered? I want to make sure the user isn't entering a dollar sign or a comma.