directing a function call

Leston Drake lestond at lpsoftware.com
Tue Apr 6 17:19:51 EDT 2004


Dar,

Thanks for the tips.
What do you mean by a "command handler"?

I tried
send "myEvent" to this stack
put the result into myResult

in the myEvent handler, I had something like
return "myValue"

but the result is empty. So I probably misunderstood.

Thanks.
--Leston

At 02:38 PM 4/6/2004, Dar Scott wrote:

>On Tuesday, April 6, 2004, at 02:19 PM, Leston Drake wrote:
>
>>I need to call a function. And I want to target the main stack,
>
>The value() function allows you to specify an object.  Read the fine print.
>
>You might also consider whether a property is the right model.  If so, you 
>might want to use a getProp handler and get a property of the main stack.
>
>Also you can get values back from send (sans in-time).  Put a command 
>handler in the main stack script and have it return a value.  In the 
>caller script you can look at 'the result'.
>
>In most cases the target changes, so watch for that.
>
>If none of the above seems right, look at 'call'.
>
>Dar Scott
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list