I have loaded about 75 custom icons into a map and then I want to address them by name. How do I select by name rather than by ID number.
I am sure it is something like objmap.Symbols.ItemByID (objmap.Symbol.Name) = "Test" or somthing like that.
This is a discussion on How to call symbol by name rather than ID. within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have loaded about 75 custom icons into a map and then I want to address them by name. How ...
I have loaded about 75 custom icons into a map and then I want to address them by name. How do I select by name rather than by ID number.
I am sure it is something like objmap.Symbols.ItemByID (objmap.Symbol.Name) = "Test" or somthing like that.
Hi,
you can have your own array of pushpin but you can use findPushpin(name) to let mappoint find it for you
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
That one I got on my own after some tinkering around. I have loaded the 75 icons into a map through the Mappoint application using the icon loader suggested in another of my posts here.
I save the map, because the user added icons are saved in the map. That way I have an expanded library without having to load every time.
When running my Access application, I first load the map with the icons installed and then I call them by the file name they had when loaded.
I use:
objPushPin(xy).Symbol = objmap.Symbols.Item("Car.bmp")
It seems to work fine and the program is so far stable.
Thanks for all your help
There are currently 1 users browsing this thread. (0 members and 1 guests)