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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Numeric Value from Database is being considered a string 2

Status
Not open for further replies.
Jul 14, 2003
116
CA
I am having a problem with a sub routine that I wrote. The sub routine takes in one parameter and then gets another value from a SQL server database. The parameter is numeric as well as the value taken from the database. However, although the value from the db is type numeric in the db vbscript is considering it a string so it gives me the following type mismatch error:

Microsoft VBScript runtime error '800a000d'

Type mismatch


Is it possible to do something similar to the SQL Cast function in VBScript?

 
In VBScript, you can convert a string to integer using
CInt().
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top