ETT
December 2nd, 1999, 01:45 AM
Hi,
Is it possible (and how) to store a function call in a variable, then "evaluate" the variable? In other words, can I do the following:
function test (x,y)
test = x + y
end function
myVar = "test(1,2)"
myResult = evaluate(myVar)
Now, myResult should be 3.
If this is not possible in VB, is there a way around this? Some tricks, maybe?
Please help.
Thanks
Is it possible (and how) to store a function call in a variable, then "evaluate" the variable? In other words, can I do the following:
function test (x,y)
test = x + y
end function
myVar = "test(1,2)"
myResult = evaluate(myVar)
Now, myResult should be 3.
If this is not possible in VB, is there a way around this? Some tricks, maybe?
Please help.
Thanks