When passing a cursor as a parameter, when is the correct time(s) to close the cursor?
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.