Android Question Different run result after stop in breakpoint

Hadi57

Member
Does anybody know why i get different result when i put a breakpoint before "IF" and step into next line?

B4X:
Sub Activity_Create(FirstTime As Boolean)
    Dim i As Int = 123
    Dim b As Byte = 2
    F1(Array As Object(i, b))
End Sub

Private Sub F1(arg() As Object)
    If arg(1) = 2 Then
        Log("Hello World.")
    End If
End Sub
 

Erel

B4X founder
Staff member
Licensed User
Don't ignore the warnings. They are important:

1602396182335.png


Change it to: If 2 = arg(1) Then
 
Upvote 0
Top