I have a problem,
I need to remove a specific trace in trend, but if i call
Trend.RemoveTrace ' I need the index of trace, but i don't know how to take the index of trace.
I need to remove one of traces by click one of these buttons.
I normally just remove everything like this, and then add those I need:
'Remove all trend traces
For vIndex = thisTrend.TraceCount To 1 Step -1
status = thisTrend.RemoveTrace(vIndex)
if i want to remove a specific trace?
@Vitor: In fact, if you want to remove a specific trace in your trend you would need to keep a trace of what you have added to your trend and in what order. This could be maintained within a global variable in the VBA project. I would go probably with a Collection object (looks a bit more like a Hash table) to maintained the index and the PI Point tag.
After this, it comes very easy to invoke the RemoveTrace method with the proper index retrieved from your cache.
Retrieving data ...