Homerclese Member Licensed User Longtime User Jun 21, 2016 #1 I have a class with the following code in the Initialize method: B4X: Public Sub Initialize(crsr As Cursor) If crsr <> Null Then : Sometimes I call myClass.Initialize(Null) and sometimes I call myCall.Initialize(dbCrsr) and pass in a cursor. However I've found that even if crsr = "Not initialized" in the debugger, the code after the <> Null check still executes?
I have a class with the following code in the Initialize method: B4X: Public Sub Initialize(crsr As Cursor) If crsr <> Null Then : Sometimes I call myClass.Initialize(Null) and sometimes I call myCall.Initialize(dbCrsr) and pass in a cursor. However I've found that even if crsr = "Not initialized" in the debugger, the code after the <> Null check still executes?
Homerclese Member Licensed User Longtime User Jun 21, 2016 #2 OK I fixed it with: B4X: If crsr.IsInitialized Then Upvote 0