Hi,
Ok, sorry I tought that if then block in VB must be closed with end if, but I know not mutch of VB.
But reading again I now think I understeand what your question was. You have this location where you put the pushpin and wants to add a waypoint to a route right ? Here it go (in C#):
Code:
Waypoint wp;
Map map = mp.ActiveMap;
Route route = map.ActiveRoute;
wp = route.Waypoints.Add(loc, "");
'loc' is your Location object in AddPushpin: oLoc(1).Location; and in the second argument you add the name, I think in your code: me.PickupCustomer;