The reason why I am stuck is I have just built a subprogram that might returns a Null.
The caller has to check if the Sub returns a Null.
If we run the following codes, we can see that:
1)
s="null" is true, but
"null" length is 4 bytes, strange!
2)
s="Null" is false
3)
s = Null is false
I have used libraries functions that returns Null and I have no problem checking Null by just:
if (s=Null) then
How is it done ?
Sub Activity_Resume
Dim s As String
s = test
If (s=Null) Then
Log("nothing1")
Else
Log("something1")
End If
If (s="null") Then
Log("nothing2")
Else
Log("something2")
End If
If (s="Null") Then
Log("nothing3")
Else
Log("something3")
End If
End Sub
Sub test As String
Return Null
End Sub