deleting multiple controls all at once

Josh Mellicker josh at dvcreators.net
Sat Feb 11 22:35:34 EST 2006


Is there a way to delete a bunch of controls whose names match a  
wildcard expression like "thing.?" or "thing.??" all at once elegantly?

example:

thing.23
thing.46
thing.4
thing.142


delete all controls named "thing." & ?? doesn't work :-)


Friends don't let friends do this:

	REPEAT with n = 1 to 300
             IF exists  ("thing." & n) THEN
                 delete "thing." & n
             END IF
       END REPEAT

:P


More information about the use-livecode mailing list