ENgetcurveindex function

Retrieves the index of a curve given its ID name.