rp_routes::getnextndates

Creates a list of the next N dates for which the passed in routeid is scheduled

o.getnextndates( tcCycle , tcDay, tnServices, tdDate, tcCursor)

Return Value

The number of dates found

Parameters

tcCycle
The route cycle (schedule) to look for

tcDay
The day of week for which the service dates are required. For example
"MO" or "TU" etc. If you leave this blank all days will be returned

tnServices
The number of scheduled services required

tddate
The date from which to retrieve services

tcCursor
The name of the internal cursor to store the results

Remarks

This method returns the next N dates that a route is scheduled.

The structure of the list returned is as follows;

cycle c(3) - Cycle of route
date Date - Date of service

Example

o.GetNextNDates("WEEKLY","TU", 12,{01/07/2003},"scheduled")

The above would;
1.	Retrieve the next 12 TUESDAY service dates for cycle "WEEKLY"
	as of the 01/07/2003
2.	Place this list in the internal cursor "Scheduled"
3.	Place the list in the collection o.oRows


See also:

Class rp_routes


Last Updated: 23/11/2005