Functions out of the message path?

Devin Asay devin_asay at byu.edu
Mon Mar 6 18:20:57 EST 2006


On Mar 6, 2006, at 4:16 PM, Arthur Urban wrote:

> Is there a way to call a function in an object out of the message  
> path? I'm surprised that there is no syntax for something like the  
> following:
>
> call DoSpecialCalculation( valueA, valueB ) of fld "Test"
>
> and have the return value placed in the variable "it". Or even:
>
> call into myLocalVar DoSpecialCalculation( valueA, valueB ) of fld  
> "Test"
>
> or better yet:
>
> put DoSpecialCalculation( valueA, valueB ) of fld "Test" into  
> myLocalVar

Take a look at the value function. It will take as an argument an  
expression (handler or function)  and the object that contains the  
handler or function definition.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the Use-livecode mailing list