Calling a Function in an Object in another object

Eric Chatonet eric.chatonet at
Wed Jul 4 11:00:39 EDT 2007

Hi Dave and Mark,

Le 4 juil. 07 à 16:53, Mark Smith a écrit :

> Yes, I think you need to check "call"  in the docs...
> best,
> Mark
> On 4 Jul 2007, at 15:41, Dave wrote:
>> Hi,
>> Is there anyway to call a function in the Script on an Object  
>> (like a field) from another object (like a button) ?
>> Thanks a lot
>> All the Best
>> Dave

Call command can't 'call' a function but a handler only.
But a handler can return a value in the result variable.
Then make your function (function) a handler (on) and use:

local tResult
call <My_Handler> of <Object>
put the result into tResult
on My_Handler
   <some stuff>
   return <value>
end My_Handler

Best regards from Paris,
Eric Chatonet.
Plugins and tutorials for Revolution:
Email: eric.chatonet at

More information about the Use-livecode mailing list