Returns whether the given object is contained in the specified vector object.
Syntax
contains( vector , object )
vector.contains( object )
Parameters
vector
|
the vector object to check.
|
object
|
the object to check for.
|
Returns
boolean
|
true if the specified vector object contains the given object.
false if the specified vector objects does not contain the given object.
|
Example
v = Vector( )
v = v.addElement( o )
if v.contains( o ) then
print( "ok" )
end
|