method indexOfValue

int32 indexOfValue(value aValue);

Argumente

Zurückgegebener Wert

This method returns the index for the specified value in the array. -1 is returned if no match found.
var arrayObj = shell.serviceManager.basics.array;
arrayObj.addValue("a");
arrayObj.addValue("b");
arrayObj.addValue("c");

var idx = arrayObj.indexOfValue("b");