I try to convert a string to number for calculation,
"XX=XX + val(a_string)"
but got this error:
" Variable is undefined: 'val' "
what shoud I do??
please help me!
Cerebrate
Printable View
I try to convert a string to number for calculation,
"XX=XX + val(a_string)"
but got this error:
" Variable is undefined: 'val' "
what shoud I do??
please help me!
Cerebrate
why not use
to convert to number?Code:CLng(anynumber)
Val() is not suported in VBScript
take a lok at http://forums.vb-world.net/showthrea...threadid=18175