PDA

View Full Version : Union



amanuel
09-21-2002, 01:21 PM
I want to use the union function so i can zoom in to the pushpins that i have created. Lets say i have created only two pushpins the way i am doing it right now, i have to build a case of how many pushpins i have created and do the code below but i want to create about eight hundered pushpins. i don't want to have a case for eight hundered of them.
Is there any other way of passing the list to the Array function.

Case 1
g_oApp.ActiveMap.Union(Array(args(1))).GoTo
g_oApp.ActiveMap.Altitude = g_oApp.ActiveMap.Altitude * 6.5
Case 2
g_oApp.ActiveMap.Union(Array(args(1), args(2))).GoTo
g_oApp.ActiveMap.Altitude = g_oApp.ActiveMap.Altitude * 6.5

Thank you

John Meyer
09-21-2002, 06:08 PM
If all the pushpins are in the same dataset you can use the "ZoomTo method"