General information
Category:
Coding, syntax & commands
Good point and one to remember.
Thanks
>>Ok, something I wil remember for the future, any particular reason for that?
>>
>>
>Oh, yes.
>Each RemoveObject decrements the ControlCount. So you'll end up referencing controls that are no longer there.
>It also 'shifts' the objects down. So if there are 4 objects and you remove number 2, then number 3 will become number 2, and number 4 will become number 3
>
>So looping backwards is the only way - unless of course you have two loops where #1 builds a list of objectnames to remove and #2 removes them
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only