Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

isnumeric in vbscript

Status
Not open for further replies.

sweetleaf

Programmer
Jan 16, 2001
439
CA
I have a section of vbscript in an asp page which checks that a variable is a number. it works for the most part but fails whenever the variable contains a "d" or an "e" (upper or lower case).

A co-worker told me that a number concantenated with "e" can be interpreted by the asp engine as an exponential number.. thus the variable will be considered numeric..
what about a number concantenated with a "d"?

Thanks

 
First: Sorry for my english, because i am a brasilian.

I tested your problem and I have a answer for you.
When you declare or not a variable in VBScript it is considered a variant type then it have any kide of value and if you atributed a value like a123, it is considered a numeric value but if You write a Response.Write Variable that return a numeric value but this is empty.

I expected have help you.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top