This code is in an EA
Now please tell me that I have made a stupid mistake.
CHARTEVENT_OBJECT_CHANGE and CHARTEVENT_OBJECT_DRAG seem to work perfectly
CHARTEVENT_OBJECT_CREATE works most of the time
CHART_EVENT_OBJECT_DELETE hardly ever works.
I would appreciate if you could try this code and let me know how it works for you.
Obviously if you can spot what I have done wrong, then I will appreciate that also.
Should be CHARTEVENT_OBJECT_DELETE.
It seems to always works for me, but could depend of how you tested it ?
Thank you Alain,
I just couldn't see it.
It works now.
Maybe I should delete this topic to save my embarrassment :)
Nah, we all make mistakes and thank God we have someone like you to point them out.
Thanks again, I was going crazy.
An interesting thing I found which I didn't see documented anywhere (maybe it is)...
If you delete multiple objects, sparam on the chartevent is returned as *
If you delete multiple objects with the same prefix, sparam is still returned as *
If you delete multiple objects with the same prefix by using ObjectsDeleteAll(0,prefix) then sparam is returned as prefix*