When passing a cursor as a parameter, when is the correct time(s) to close the cursor?
Cheers
B4X:
Sub main
Dim v_Cursor as Cursor = SQL.ExecQuery("SELECT * FROM TABLE")
func(v_Cursor)
v_Cursor.Close '?
End Sub
Sub func(p_Cursor as Cursor)
p_Cursor.getString("column")
p_Cursor.Close '?
End Sub
Cheers