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)