SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎target.hash_table‎ > ‎

GetByIndex


Platform Objects


Description

Calling target.hash_table.GetByIndex will find a value using an index.

Syntax


trg.hash_table.Find( index, key )

Index - Input the index
Key - Input the key

Return value


This function returns whatever value was associated with the index.

Sample

'---------- Start ----------
Function Start
Dim value

trg.hash_table.Add "a", 8
trg.hash_table.Add "b", 11
for i = 0 to trg.hash_table.UBound()
value = trg.hash_table.GetByIndex( i, "a" )
trg.Message( value )
next

End Function

See also