disable enable

Howard Bornstein bornstein at designeq.com
Fri Jun 18 00:33:15 EDT 2004


On Jun 17, 2004, at 3:45 PM, hershbp at verizon.net wrote:

> Hi , is there a way to disable a whole stack or all objects of a stack 
> and enable them after that ?

I don't know off-hand if every object has a disabled state but you 
could try something like this:

on disableAll
   repeat with i = 1 to the number of controls
     set the disabled of control i to true
   end repeat
end disableAll

on enableAll
   repeat with i = 1 to the number of controls
     set the disabled of control i to false
   end repeat
end enableAll


Regards,

Howard Bornstein
-----------------------
D E S I G N   E Q
www.designeq.com


More information about the use-livecode mailing list