I test for kvs = null (having assigned nothing to it) and mouseover shows it is null but the if-then-else test displays not null in the toast message Why is this?
Here's all the code.
Here's all the code.
B4X:
Sub Process_Globals
Private kvs As KeyValueStore
End Sub
Sub Activity_Create(FirstTime As Boolean)
kvs.Initialize(File.DirDefaultExternal, "datastore")
If kvs = Null Then
ToastMessageShow("null",True)
Else
ToastMessageShow("not null",True)
End If
End Sub