Probably very simple but I may have confused myself.
I'm going through my app trying to make it more crash resistant. Can I / should I check there are rows to process before processing them and how?
Attached is sample code. How do I detect No results. B4A and B4i please.
I'm going through my app trying to make it more crash resistant. Can I / should I check there are rows to process before processing them and how?
Attached is sample code. How do I detect No results. B4A and B4i please.
B4X:
Dim rsData As ResultSet = Main.sql1.ExecQuery2($"SELECT * FROM table WHERE ID = ?"$, Array As String(myID))
Do While rsData.NextRow
.....
Loop
rsData.close
'I want to pop up a message if there are no results'