Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
IList.currentRow
Returns the row number of the current row.
Syntax
public int currentRow()Description
The
currentRowmethod returns the number of the current row. Rows are numbered from1toM, withMrepresenting the total number of rows in the specified list.Returns
Returns the current row number or
-1if there is no current row. For example, ifhasDataisfalse, there would be no current row, socurrentRowwould return-1.Example
The following code accesses the current row while iterating through a list:
String title; String rating; String year; int row; do { row = MatchingMovies.currentRow(); rating = MatchingMovies.getValue("rating"); title = MatchingMovies.getValue("title"); year = MatchingMovies.getValue("year"); // Process row, rating, title and year here. } while (MatchingMovies.moveToRow(IList.next, 0) );See Also
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.