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

Find


Platform Objects


Description

Calling target.array.Find determines if a certain value is within an array.

Syntax


Function Find(value)

value (input) - value that you want to find

Return value


Returns the index of the element found in the array, if the element is not found Find returns -1.

Sample

'---------- Start ----------
Function Start
trg.array.Add( 66 ) 
trg.array.Add( 77 )
trg.array.Add( 11 )
trg.Message( trg.array.Find( 3 ) )
End Function        

See also


Platform Objects and Methods
target.array.Empty
target.array.First
target.array