Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement