Syntax
int PCMSGetNumSegments(Trip trip)
Parameters
Trip trip – Handle to a trip.
Description
Gets the number of report segments in a Detailed Report.
Return Values
Sample Code
int nSegments = PCMSGetNumSegments(trip); if (TestErr(nSegments > 0, "PCMSGetNumSegments")) { Log_Pcmstest("%-*s%-*s%-*s%-*s%-*s%-*s%-*s", 6, "State", 5, "Toll", 4, "Dir", 33, "Route", 8, "Miles", 8, "Min", 33, "Interchange"); for (int iSegment = 0; iSegment < nSegments; ++iSegment) { segmentStruct seg; memset(&seg, 0, sizeof(segmentStruct)); ret = PCMSGetSegment(trip, iSegment, &seg);
Supported Since: PC*MILER|Connect 15
Category: Trip Reports