Control Set

There’s a way to delete all of a control set (but not the control that have index “0”)? Thanks in advance

In the navigator select all the controls except 0 and delete them.

Yes, but by code.

if (self.ControlCount > 0) then for i as Integer = (self.ControlCount - 1) DownTo 1 if (self.Control(i) IsA PushButton) AND (self.Control(i).Index > 0) AND (self.Control(i).Name = "PushButton1") then self.Control(i).Close end if next end if

Edit to suit your needs

[quote=203400:@shao sean] if (self.ControlCount > 0) then for i as Integer = (self.ControlCount - 1) DownTo 1 if (self.Control(i) IsA PushButton) AND (self.Control(i).Index > 0) AND (self.Control(i).Name = "PushButton1") then self.Control(i).Close end if next end if

Edit to suit your needs[/quote]
It’s works! Thanks so much!

You’re welcome…