Send and the context

Bob Sneidar bobsneidar at iotecdigital.com
Sun Feb 9 14:33:11 EST 2014


Thanks Jacque. I can see where that may be useful. However, seeing that there seems to be no difference in context between send and dispatch, at least by my experiments, which I admit may have been flawed in some way if others get different results than I did, I can just use dispatch for everything, unless I need to send in time. And since I do not very often use functions to *do* things, just return values, I rarely have a need to send to a function. 

I think my initial aversion to execution contexts is somewhat justified at this point, so I am making it one of my LC coding principles to always ensure my handlers are in the right place to avoid context issues. 

Bob


On Feb 8, 2014, at 10:38 , J. Landman Gay <jacque at hyperactivesw.com> wrote:

> On 2/8/14, 12:34 AM, Bob Sneidar wrote:
>> I DID however find one other difference between send and dispatch:
>> You can send a command but NOT a function!
> 
> For functions you can use this:
> 
> get value("myHandler(param)",cd "othercard")
> 
> where the first parameter is the name of the function with its parameters, and the second parameter is the location of the script to query.
> 
> See "value" in the dictionary, especially Oliver's user note.
> 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list