Just write:IsNotInitalized()
B4X:
If Not(IsInitialized(Lst)) Then Return ' equivalent to: If IsInitialized(Lst) = False Then Return
opps: peacemaker is faster.
Just write:IsNotInitalized()
If Not(IsInitialized(Lst)) Then Return ' equivalent to: If IsInitialized(Lst) = False Then Return
That is indeed the case. IsNotInitialized does make sense. Similar to SQL IsNull.Note that it will eventually be IsNotInitialized due to name conflicts.
If IsNotInitialized(Button1) = False Then Button.Text = "abc"
'or
If Not(IsNotInitialized(Button1)) Then ...
Double negation is stil possible, and also a very uglyIf NotInitialized(something) then ....
if Not(NotInizialized(something) then ..
About the name conflict, would it make a difference if you simply named it Initialized?Note that it will eventually be IsNotInitialized due to name conflicts.
If Not(Initialized(Lst)) Then Return
About the name conflict, would it make a difference if you simply named it Initialized?
Two good suggestions that I need to check.Maybe, just a suggestion drop the 'is' then code becomes