Is there any way that I can execute a formula from a variable?<br>
like:<br>
x = 3<br>
y = 7<br>
<br>
formula = "x + y"<br>
<br>
result = formula<br>
<br>
so that result will be = 10 ?<br>
The user would enter the formula on a textbox and the program should execute whatever is on the control.<br>
I use that a lot in Clipper and but now I am stuck!<br>
<br>
like:<br>
x = 3<br>
y = 7<br>
<br>
formula = "x + y"<br>
<br>
result = formula<br>
<br>
so that result will be = 10 ?<br>
The user would enter the formula on a textbox and the program should execute whatever is on the control.<br>
I use that a lot in Clipper and but now I am stuck!<br>
<br>