deleting multiple controls all at once

MisterX b.xavier at internet.lu
Sun Feb 12 13:23:51 EST 2006


Hi Rob

no if we delete "named" buttons...
;)

cheers
Xavier

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> Rob Cozens
> Sent: Sunday, 12 February, 2006 18:36
> To: How to use Revolution
> Subject: Re: deleting multiple controls all at once
> 
> All,
> 
> >> 	REPEAT with n = 1 to 300
> >>             IF exists  ("thing." & n) THEN
> >>                 delete "thing." & n
> >>             END IF
> >>       END REPEAT
> >>
> 
> All solutions posted so far neglect to take into account that 
> the number of a control changes when a control with a lower 
> number is deleted.
> 
> 	repeat with n = 300 down to 1
> 
> 
> Rob Cozens
> CCW, Serendipity Software Company
> 
> "And I, which was two fooles, do so grow three; Who are a 
> little wise, the best fooles bee."
> 
> from "The Triple Foole" by John Donne (1572-1631)
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage 
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list