Setting 'it' in caller

J. Landman Gay jacque at hyperactivesw.com
Mon May 16 23:54:42 EDT 2005


On 5/16/05 6:33 PM, Dar Scott wrote:

> How do I put a value into the instance of 'it' in the calling function?
> 
> For example, suppose I want to create a custom command 
> 'getCurrentRobotName' that returns an error in the result and the 
> current name in 'it'.  This is 'it' in the handler that invokes 
> 'getCurrentRobotName'.

Most commonly, use a two-line (or two-item) result. Put the name in line 
1 and the error in line 2 (or vice versa.) Then parse the strings in the 
calling handler.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


More information about the use-livecode mailing list