set_ShapeSelected

Jan 6, 2016 at 6:08 PM
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)
Jan 6, 2016 at 6:29 PM
Nevermind, I found the answer here: http://mapwingis.codeplex.com/discussions/399241
Marked as answer by pmeems on 1/21/2016 at 7:13 AM