Stefano Ravagni wrote:
>
>   i use a code like this:
> 
> If Dati.HasRows = True Then
>           sorgente.DataSource = Dati
>              .....
>              .....
> end if
> 
> If Dati.HasRows = True then
> ..... make something others....
> end if
> 

My reading of MSDN indicates that the HasRows property value can change
after
calls to the Read method (which is used prior to actually reading each
result
row).  In your sample code, using the SQLiteDataReader as a data source will
almost certainly change the HasRows property.

I've added a test that demonstrates how this works, here:

        https://system.data.sqlite.org/index.html/ci/7fb5c1cd3e?sbs=0&w

Based on your previous statements, it sounds like you may have expected the
return value of the HasRows property to remain constant (i.e. even after
reading some or all of the available rows)?

--
Joe Mistachkin

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to