Hadi57 Member Licensed User Longtime User Oct 10, 2020 #1 Does anybody know why i get different result when i put a breakpoint before "IF" and step into next line? B4X: Copy 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
Does anybody know why i get different result when i put a breakpoint before "IF" and step into next line? B4X: Copy 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 Longtime User Oct 11, 2020 #2 Don't ignore the warnings. They are important: Change it to: If 2 = arg(1) Then Upvote 0
Hadi57 Member Licensed User Longtime User Oct 11, 2020 #3 Erel said: Don't ignore the warnings. They are important: View attachment 101277 Change it to: If 2 = arg(1) Then Click to expand... Thanks you a lot dear Erel for your respond, you are completely right, i did not get the warning message, because i used B4A ver9, after update i got that warning. ? Upvote 0
Erel said: Don't ignore the warnings. They are important: View attachment 101277 Change it to: If 2 = arg(1) Then Click to expand... Thanks you a lot dear Erel for your respond, you are completely right, i did not get the warning message, because i used B4A ver9, after update i got that warning. ?