hi
i am a little bit confused.
i have bugs in my app and i try to debug it and found something strange.
so x runs from 0 to 2
i was thinking that x should be logged 2 because this is the last value that was set to x but the logs gives me 3
why is that?
is there a reason why x keeps counting even if i set it to stop at the value 2?
thanks
i am a little bit confused.
i have bugs in my app and i try to debug it and found something strange.
B4X:
For y = 0 To 2
For x = 0 To 2
'do nothing
Next
Log(x)
Next
so x runs from 0 to 2
i was thinking that x should be logged 2 because this is the last value that was set to x but the logs gives me 3
why is that?
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
3
3
3
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
** Activity (main) Pause event (activity is not paused). **
is there a reason why x keeps counting even if i set it to stop at the value 2?
thanks