There is no pointer variable per se, but there is dynamic parsing, so if
you're trying to store the functions on the fly, you can keep a list of
them (or however you want to manage them), as in:
myFuncs =["Scream()", "Yell(20)", "Whimper()", "Cry(99, 20, 10)"]
thisFunc =myFuncs[x]
do(thisFunc)
If you need a return value, use the value function, as in:
result =value(thisFunc)
If the funcs belong to objects, then you'll have to preserve the object
value; I usually simulate making a handle to an object so I can pass around
the handle and not the object itself (it survives strings and all).
- Tab
At 11:36 AM 11/19/01 +0000, Jamie Dyer wrote:
>Hi all,
>
>I want to have a variable that points to a function. how can I do this?
>I cant use this -
>
>me.pointer = me.function()
>
>because this simply call the function. What I want to to is call the
>function later on in my script by calling me.pointer("some vars"). Is
>this possible in Lingo?
>
>Thank you
>
>JamieD
>
>Jamie Dyer
>Senior Web Designer
>T: 01752 23(3959)
>University of Plymouth
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]