"unsetting" behavior

Phil Davis revdev at pdslabs.net
Sat Jul 27 16:20:46 EDT 2013


On 7/27/13 12:48 PM, Dr. Hawkins wrote:
> I'm looking at the need to be able to set & "unset" behaviors.
>
> If I have set the behavior of a field to some button, and then want it
> to go back to default behavior, is there any way to do this?  Do I
> need a null script?

set the behavior of control 1 to empty

>
> And how long does a "setting" last?  While I"m o the card? While the
> stack is open?  While the mainstack is open?
Dunno. I would assume the unsetting lasts as long as the unset copy of 
the stack is in memory.

-- 
Phil Davis





More information about the use-livecode mailing list