Returns the first index into the specified vector object which the given object is found.
Syntax
indexOf( vector , object )
indexOf( vector, object , index )
vector.indexOf( object )
vector.indexOf( object , index )
Parameters
vector
|
the vector object to use.
|
object
|
the object to search for.
|
index
|
the starting index into the specified vector object.
|
Returns
integer
|
the index into the specified vector object.
-1 if, the object is not found.
|
Example
i = v.indexOf( o )
|