parameter variables question

Dar Scott dsc at swcp.com
Tue Jul 29 17:35:00 EDT 2003


On Tuesday, July 29, 2003, at 04:18 PM, Chris Sheffield wrote:

> I've gotten stuck by this one several times.  Because
> you're returning a value, your handler has to be a
> function.  Use "function" instead of "on".

Here is something cool!

A handler (not a function) _can_ return a value.  The caller can get it 
with result().  Practice typically limits this to error conditions as 
in Alex's example, but it can be handy in other cases.

Dar




More information about the use-livecode mailing list