PDA

View Full Version : How to determine the length of Shape.vertices in Delphi?



schuchhardp
12-13-2002, 04:45 AM
I have a map on which polylines are drawn. Using Delphi, I want to export the indivual points of each poyline, but I can't seem to find a way to determine the length of the vertices array.
Using length(MyShape.vertices) is not possible and when I try to access an item that is out-of-bounds, I get an EVariantBadIndexError exception. Trying to catch this does not help either. Does anyone have a solution?

Thanks,
Pascal