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

String to number (like parseint() in jscript)

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Trying to avoid mixed mode scripting.....
Looking for a function/routine to change a string numeric to a number. i.e. "123" to 123.
 
ERHB,

Use cInt("123")

Mise Le Meas,

Mighty :)
 
ERHB,

There are more conversion functions that you could also use. The names are pretty self-explanatory:

CInt()
CLng()
CDbl()

All of these will convert a string to a number, be it an integer, a long integer or a double Mise Le Meas,

Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top