Home News DOC Class DL Others Rice
Class  >  dbreader  >  HasRows
dbreader class : HasRows getter

Description

Returns a value that indicates whether the result of command execution exists.

Syntax

instance.HasRows

Arguments

None.

Return value

ClassDescription
boolWhether the result of command execution exists.

Sample code

1:

connection cnn = new connection("Data Source=c:\somedirectory\somedatabase.sqlite3;Version=3;");

2:

cnn.Open();

3:

command cmm = new command("select * from sometable where id < 100;", cnn);

4:

dbreader dbr = comm.Reader(); // Command execution. Returns multi-line results.

5:

bool has = dbr.HasRows;

6:

dbr.Release();

7:

cmm.Release();

8:

cnn.Close();

9:

cnn.Release();

Notes

Returns true if the result of command execution exists. Otherwise, returns false.

Links for reference

None.

Copyright © Rice All rights reserved.