Jump to content
Software FX Community

Removing annotation object removes whole list

User (Legacy)

Recommended Posts

I need to remove an annotation text object from a list, and I search for it 

by the text it contains. When I find the one I'm looking for, it kills the

whole list of annotation objects. Here's some sample code if that will

help. I'm using the latest service pack of ChartFX98 and VB6sp4.

index = 0

For Each i In AnnotX

If i.ObjectType = OBJECT_TYPE_TEXT Then

If i.Text = "Text to Remove" Then

AnnotX.Remove index

End If

End If

index = index + 1

Next i


Fernando Vilas


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...