setprop handlers for custom property sets

Mark Wieder mwieder at ahsoftware.net
Fri Jul 31 01:20:15 CEST 2015


Paul Dupuis <paul at ...> writes:

> The recursion issue is of you have a pair (or more) or setProp handlers
> that call back to one another: ie.

Right. There's a special-case trap for that. From the docs:

If you use the set command within a setProp control structure to set the same
custom property for the current object, no setProp trigger is sent to the object.

(This is to avoid runaway recursion, where the setProp handler triggers itself.)

-- 
 Mark Wieder
 ahsoftware at gmail.com




More information about the use-livecode mailing list