Hello.....
In my program I have 3 variables, say
a = 10
b = 20
c = 30
I have a variable as string
vformula = "a + b + c"
I have to evaluate the formula and get the result as 60
ie ; myanswer = SOMEFUNCTION(vf ormula).
I tried using Scriptcontrol.E VAL function. But I can use only " 10 + 20 + 30".
Also, when I browse thru net I found something lilke CInt(a) + CInt(b) + CInt(c). This is also not applicable since I wont be knowing the formula & variables in advance.
Pls Help, thanks in advance....
Regards
Reshmi
In my program I have 3 variables, say
a = 10
b = 20
c = 30
I have a variable as string
vformula = "a + b + c"
I have to evaluate the formula and get the result as 60
ie ; myanswer = SOMEFUNCTION(vf ormula).
I tried using Scriptcontrol.E VAL function. But I can use only " 10 + 20 + 30".
Also, when I browse thru net I found something lilke CInt(a) + CInt(b) + CInt(c). This is also not applicable since I wont be knowing the formula & variables in advance.
Pls Help, thanks in advance....
Regards
Reshmi
Comment