CSet:GetIndex


The GetIndex method returns the index of the specified member.

Syntax

index = CSet:GetIndex( member )

bullet.gif    member is a reference or the value of the member to find.

bullet.gif    index is the index of the member in the set.

bullet.gif    On success, the member's index is returned.

bullet.gif    On failure, 0 is returned.

Remarks

This method matches the member value and returns it's index in the set. If the set contains numbers, there exists the possibility of the same value being present more than once in the set. The first match found is the one whose index is returned. If the set contains memory objects, then this is usually not a problem.

Related Topics

CSet, GetMember


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.