Delete objects with string in name? - page 2

 
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.

 
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:

Merci.

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

Regards.

Reason: