I have a set of pushpins in a map which each have a name that follows the format "a number & some text"
In my vb application then have a list of all pushpins in a listbox, the list box contains the number part of the pushpin name.
what i would like to happen is when the user selects a number from the listbox the appropriate pushpin is then selected in mappoint
I have the following code
Dim objPin As MapPoint.Pushpin
Dim objMap As MapPoint.Map
Dim gappmp as Mappoint.application
Set objMap = gappmp.ActiveMap
Set objPin = objMap.FindPushpin(Me!listbox)
objPin.Select
Where Me!listbox is the listbox on my vb form. However as the listbox only contains the number part of the pushpin name (and this is all it will ever hold, i don't wish to change this) it can't find the pushpin as it is clearly looking for the whole name.
I would like to know is it possible to find a pushpin based only on part of the name, instead of the whole name.
I would be very grateful for any help.
Dazzer