Checking for Errors

The constant PI_NOMOREVALUES is a positive number (specifically, 100). Since the other common PI-API error code is also a positive number (that is, network error), your code must check to see if the return code is different from PI_NOMOREVALUES to determine whether or not an error has occurred.

Enabling Operational Intelligence