Quantcast
Channel: MapWinGIS ActiveX Map and GIS Component
Viewing all articles
Browse latest Browse all 2341

New Post: set_ShapeSelected

$
0
0
I'm trying to select a polygon in a shapefile. The following is the code I'm using, the first three lines work to identify the shape (based on coordinates) correctly. The 4th line generates a syntax error, and points to set_ShapeSelected as not being understood by the compiler. It is as if the function set_ShapeSelected doesn't exist. I'm using version 4.8.6 of the activex component in a VBA environment
    selectedLayerShapefile.BeginPointInShapefile
    targetShapeIndex = selectedLayerShapefile.PointInShapefile(ProjX, ProjY)
    selectedLayerShapefile.SelectNone
    selectedLayerShapefile.set_ShapeSelected(targetShapeIndex, true)

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>