Array Collection - IndexOf Property
IndexOf returns the index number of an item in a collection
Member of Array Collection (PRIM_ACOL)
Data Type - Integer
Parameters
Name | Type | Data Type | Description |
|---|---|---|---|
Object | *Input | Instance of the object to be searched for | |
StartingAt | *Input | Integer | Index 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>