View Single Post

  #4 (permalink)  
Old 01-22-2006
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
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;
Reply With Quote