Hello
I have a strange problem with for next step -1
Code:
Dim n As Int =0
For i=listcevap.Size-1 To (listcevap.Size-TextField1.Text.Length) Step -1
If listcevap.Get(i) = TextField1.Text.CharAt(n) Then
listsonuc.Add("1")
Else
'Exit
End If
next
Now listcevap.size is 12. and textfield1.text.length is 4
so for next is between i=11 to 8 step -1
but during wathcing the logs i see that b4i first gets i=8 than 9 than 10 than 11 instead of first 11 than 10 than 9 than 8 (while geting the values of list )
What am i doing wrong ? I am about to go mad about this.
I have a strange problem with for next step -1
Code:
Dim n As Int =0
For i=listcevap.Size-1 To (listcevap.Size-TextField1.Text.Length) Step -1
If listcevap.Get(i) = TextField1.Text.CharAt(n) Then
listsonuc.Add("1")
Else
'Exit
End If
next
Now listcevap.size is 12. and textfield1.text.length is 4
so for next is between i=11 to 8 step -1
but during wathcing the logs i see that b4i first gets i=8 than 9 than 10 than 11 instead of first 11 than 10 than 9 than 8 (while geting the values of list )
What am i doing wrong ? I am about to go mad about this.