Syntax 

int PCMSSetLoaded (Trip trip, int which, bool loaded)


Parameters 

Trip trip – Handle to a trip.


int which – The stop on the trip. Stop number 0 is the origin.


bool loaded – Set to True if truck is loaded; False if truck is empty


Description

Specifies whether a truck is loaded or unloaded at any given stop on a route.


Return Values 

Returns zero (0) upon success. A negative one (-1) indicates an error has occurred.


Sample Code 

PCMSClearStops(trip);
PCMSAddStop(trip, "08518");
PCMSAddStop(trip, "08016");
PCMSAddStop(trip, "08518");
PCMSSetLoaded(trip, 1, false);
PCMSSetLoaded(trip, 2, true);
            
ret = PCMSCalculate(trip);


Supported Since: PC*MILER Connect 12

Category: Trip Management