I am not sure if there is any api to check the rowcount. One option would be to introduce a variable (int rowcount = 0) and increment it with in isValidRow block.
Srikanth On Mar 8, 12:19 am, meerkat <[email protected]> wrote: > Hello, > > using the Gears api how do you inform the user that there are no > records returned? > > while (rs.isValidRow()) { > console.log(rs.fieldName(0) + " == " + rs.field(0)); > rs.next();} > > rs.close(); > > I want the opposite of rs.isValidRow() I think but adding ! > rs.isValidRow() crashes the script. > > any suggestions? I am sure it must be simple. > meerkat
