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.
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
KVS won't be null once you have Dimmed it at it creates the (uninitialized) variables that are in Class_Globals in the constructor. What are you trying to test for?
KVS won't be null once you have Dimmed it at it creates the (uninitialized) variables that are in Class_Globals in the constructor. What are you trying to test for?
KVS won't be null once you have Dimmed it at it creates the (uninitialized) variables that are in Class_Globals in the constructor. What are you trying to test for?