Syntax 

int PCMSMatrixClear()


Parameters 

None


Description

Deletes all stops from the trip matrix. Any data previously calculated for this matrix will also be deleted.


Return Values 

An integer return code. Negative one (-1) indicates that the product is not licensed for RouteMatrix.


Sample Code

// Calculate the routes
PCMSMatrixCalculate(NULL);

// Print the distance results
for (long i = 0; i < lStopCount; i++)
{
     for (long j = 0; j < lStopCount; j++)
     {
          char szBuffer[256]= {0};
          PCMSMatrixGetCell(i, j, 0, szBuffer, sizeof(szBuffer));
          printf("%s\t", szBuffer);
                  }
                  printf("\n");
           } 
    }
// Clear the matrix of all data so that it can be run again
PCMSMatrixClear();


Supported Since: PC*MILER|Connect 26

Category: Matrix Functions