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

Name

Type

Data Type

Description

Object

*Input

PRIM_OBJT

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>


See also

All Component Classes

Technical Reference

  • No labels