DeleteRow does not work for the geometry shape

N

NAdir

Hi,
I tried to delete rows in the geometry section and it works under VBA. But
the same code does not do anything when I use it in VB .NET. I have a line
shape and I want to delete all lineTo rows and keep only the first and last
rows.
Any help ? Thanks

Dim index As Integer
For index = flowShape.RowCount(VisSectionIndices.visSectionFirstComponent)
To 2 Step -1
flowShape.DeleteRow(VisSectionIndices.visSectionFirstComponent,VisRowIndices
..visRowVertex + index)
Next
 
A

Al Edlund

remembering that in vb.net indices usually start at 0 and in vba they
usually start at 1. I'd check how your indices are being applied.
al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top