Click to See Complete Forum and Search --> : string to integer VBScript


aska_chage
April 25th, 2001, 09:32 PM
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

Glenn Stark
April 26th, 2001, 12:49 AM
a$="123456"
num= val(a$)

this converts the string 123456 into a number
look up the function val.

hope this helps.