rp_charges::getassignedroutes

This returns a list of route numbers and route ids that the passed in charge id is assigned to

o.getassignedroutes( tcChargeID, tcCursor)

Return Value

The number of routes found

Parameters

tcChargeID
The charge id to find assigned routes

tcCursor
The name of the cursor to return values into

Remarks

This function is handy for getting a list of routes that are assigned to a charge in the service
diagram. The list that is returned has the same structure as the routes.dbf

Example

o.GetAssignedRoutes("CH124643","TASSIGNED")
This would;
1.	Retrieve route records for all routes that charge "CH124643" is assigned to
2.	Place this list the internal cursor called "TASSIGNED"
3.	Place this list into o.oRows

See also:

Class rp_charges


Last Updated: 23/11/2005