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