Home > Contents > Index >
IList.currentRow
Returns the row number of the current row.
Syntax
public int currentRow()Description
The
currentRow
method returns the number of the current row. Rows are numbered from1
toM
, withM
representing the total number of rows in the specified list.Returns
Returns the current row number or
-1
if there is no current row. For example, ifhasData
isfalse
, there would be no current row, socurrentRow
would 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, 2018, Oracle and/or its affiliates. All rights reserved.