Servertec | indexOf( )

Content Introduction Release Notes Features FAQs Requirements Installation Change Log Future Plans Knowledge Base Reference Manual Conventions Scriptlets Data Types Constants Variables Procedures Operators Statements Objects Array Cookie Date Enumeration File FileDescriptor Hashtable Internet IO JDBC Number Object Properties Random Request Response SqlTypes Stack StreamTokenizer String StringBuffer StringTokenizer System Vector Wrappers Servlet Server Side Preprocessor Executable Samples Sales Legal Feedback |
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 )
top of page
| Copyright © 1997-1999 Servertec. All rights reserved. Last Modified: Tue Jan 26 22:19:03 EST 1999