Delete objects with string in name? - page 2

To add comments, please log in or register
Thierry Ramaniraka
536
Thierry Ramaniraka  
whroeder1:
StringFind > -1 means the string is somewhere in the object name. StringFind == 0 means the string STARTS with the name, which is what OP asked

Merci.

Panjianom Adi Pratomo
486
Panjianom Adi Pratomo  
Ian Venner:

When I want the indicator to remove only the objects it created on exit I do it like this:

I declare in itit()

Then the string name of every object the indicator creates is prefixed with ID for example:

So then to remove all the objects in deinit() search for all objects whose name begins with the ID and delete them.

I am sorry to bump this. But it really helpfull!

Thanks Ian.

Thierry Ramaniraka
536
Thierry Ramaniraka  
Thierry Ramaniraka:

Merci.

Please,
How to tell the objectname does NOT contain "myCustomString" ?

Regards.

12
To add comments, please log in or register