Sorted Array Collection - IndexOf Property

IndexOf returns the index number of an item in a collection

Member of Sorted Array Collection (PRIM_SACO)

Data Type - Integer

Parameters

NameTypeData TypeDescription
Object*InputPRIM_OBJTInstance of the object to be searched for
StartingAt*InputIntegerIndex in the collection at which to searching

Details

IndexOf returns the index number of an item in a collection.
 
If the object does not exist in the collection the result will be 0.

Example

Accessing the index of an object in a collection.
#Result := #Collection.IndexOf<#Object>
Accessing the index of an object in a collection using the StartingAt parameter.
#Result := #Collection.IndexOf<#Object #StartingAt>

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2