Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

Returns

This function returns the index of the value in the Slapi_ValueSet, or -1 if there was no more value or the input index is incorrect.