PDA

View Full Version : Is this possible



Anonymous
09-10-2002, 06:07 AM
Hi All,

I have been asked the following question and require a little assistance in being able to answer it as I have no knowledge of interfacing with mappoint.

Q> Is it possible to select a pushpin within mappoint and for the data held against the pushpin i.e. Address / Phone No to be passed out into another application based upon a button being pressed within the external application.

Any help and advice on wether this is possible and how I would need to approach this (i.e. which methods/objects/properties should I be looking at) would be a great help.

Thanks In advance....

Dave Bonas
Analyst Programmer.
dave.bonas@racsoftware.co.uk

John Meyer
09-10-2002, 08:12 AM
Yes you can. Here in this example I'm using the active X control on a VB6 form. This code can be in a command button...

Dim objmap As MapPoint.Map
Set objmap = MappointControl1.ActiveMap
Dim objPin As MapPoint.Pushpin

If TypeOf objmap.Selection Is Pushpin Then
Set objPin = objmap.Selection
MsgBox objPin.Name
MsgBox objPin.Note
End If