|
-
December 2nd, 1999, 02:45 AM
#1
Sub/Function stored in Variable possible?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|