JamesGreaves Active Member Licensed User Sep 18, 2019 #1 Null is not working as I expect, please advise, thanks. B4X: Dim ThisValue As String ThisValue = Null If ThisValue = Null Then Log("Null Value") Log(">" & ThisValue & "<") Else Log("No Null detected") Log(">" & ThisValue & "<") End If LOG SHOWS: No Null detected >null<
Null is not working as I expect, please advise, thanks. B4X: Dim ThisValue As String ThisValue = Null If ThisValue = Null Then Log("Null Value") Log(">" & ThisValue & "<") Else Log("No Null detected") Log(">" & ThisValue & "<") End If LOG SHOWS: No Null detected >null<
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2019 #2 It is a mistake to assign Null to a string. Set it to an empty string instead if you want to "reset" the variable. The actual value will be converted to "null". Upvote 0
It is a mistake to assign Null to a string. Set it to an empty string instead if you want to "reset" the variable. The actual value will be converted to "null".
JamesGreaves Active Member Licensed User Sep 18, 2019 #3 Ok, Erel, you're the boss. I'll just accept that, thank you. Upvote 0