how to convert from a string to a number (maybe ascii) in VBScript?
let say, i want to convert letters to the corresponding ascii code, and do some mathematic manipulation to it. how to do it?
thx in advance
chris
Printable View
how to convert from a string to a number (maybe ascii) in VBScript?
let say, i want to convert letters to the corresponding ascii code, and do some mathematic manipulation to it. how to do it?
thx in advance
chris
a$="123456"
num= val(a$)
this converts the string 123456 into a number
look up the function val.
hope this helps.