how to find a line????

Anonymous
03-08-2004, 04:36 AM
I have an application which create lines from an excel. I want to delete one line but I don't know.

I have tryed with various methods (FindPushpin,FindAddressResults,FindPlaceResults,F indResults) but anyone find a line.

I need an example as how find a line.

Thanks in advance.

kwargo
03-08-2004, 02:03 PM
I was having the same problem

I found out how to identify what was selected.

Private Sub Timer1_Timer()

On Error GoTo ErrorHandler

dim shp = Map


If TypeOf MPC.ActiveMap.Selection Is Object Then

Set shp = MPC.ActiveMap.Selection
'if the selection is not a shape, it will fail and go to the ErrorHandler
'if not you have the line selected.

' do what you want
' you can determine what line it is if you named your line or put text in

end if

ErrorHandler:

End Sub

 
Web mp2kmag.com
mapforums.com