Profile - 240: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
on "IF" for this code
B4X:
Wait For ion_Event (MethodName As String, Args() As Object)
If Args(0) = -1 Then
I think it is similar or equivalent to === in some language. It is a new feature to check the type of value with the object so the result of comparison is expected to be correct. I think it is easier to compare in this way instead of using === which may be more confusing.