Jump to content
Software FX Community

Removing annotation object removes whole list


User (Legacy)
 Share

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

Thanks,

Fernando Vilas

fvilas@iname.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...