iOS Question How to judge whether there are records in the sqlite query result?

watesoft

Active Member
Licensed User
Longtime User
In B4I , How to judge whether there are records in the sqlite query result?
In B4A, I can use:
B4X:
If cur.RowCount>0 Then
     i=k+1  
else
     i=k
end if
 

watesoft

Active Member
Licensed User
Longtime User
Don't use Cursor at all.

Only ResultSet:
B4X:
Dim rs As ResultSet = sql.ExecQuery2(...)
Do While rs.NextRow
 'read records
Loop

Hi Erel
I know ResultSet,but how to deal with "If Else" statement.
 
Upvote 0

watesoft

Active Member
Licensed User
Longtime User

Yes,thanks Erel.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…