Anonymous
11-04-2003, 11:33 AM
Type rType = rte.Waypoints.GetType();
ArrayList al = new ArrayList(System.Array.CreateInstance(rType,rte.Wa ypoints.Count));
mpMap.ActiveMap.Union((object)al.ToArray(typeof(Ma pPoint.Waypoint))).GoTo();
rte = my active route i created.
I tried everything passing the waypoints collection, creating an array, but it tells me the parameter is incorrect.
I'm using MapPoint 2002 control.
The specs say Map.Location Union( object ArrayOfLocations )
How to make this work?
thanks,
nick :?:
ArrayList al = new ArrayList(System.Array.CreateInstance(rType,rte.Wa ypoints.Count));
mpMap.ActiveMap.Union((object)al.ToArray(typeof(Ma pPoint.Waypoint))).GoTo();
rte = my active route i created.
I tried everything passing the waypoints collection, creating an array, but it tells me the parameter is incorrect.
I'm using MapPoint 2002 control.
The specs say Map.Location Union( object ArrayOfLocations )
How to make this work?
thanks,
nick :?: