C Cor Active Member Licensed User Longtime User Nov 16, 2010 #1 Is there a way to solve the exit problem for me dim sList as list dim found=boolean found=false for i = 0 to sLlist.size-1 If sList.Get(i) = "data" Then 'only exit here found=true Exit 'not here end if next grCor
Is there a way to solve the exit problem for me dim sList as list dim found=boolean found=false for i = 0 to sLlist.size-1 If sList.Get(i) = "data" Then 'only exit here found=true Exit 'not here end if next grCor
Erel B4X founder Staff member Licensed User Longtime User Nov 17, 2010 #2 I guess that the problem is "unreachable code detected" error while compiling. This is fixed for the next update. BTW, you can use sList.IndexOf("data") instead of this loop.
I guess that the problem is "unreachable code detected" error while compiling. This is fixed for the next update. BTW, you can use sList.IndexOf("data") instead of this loop.
C Cor Active Member Licensed User Longtime User Nov 17, 2010 #3 I have to use this loop because if want the first occurence after e.g [C] f4=01 [D] f4=02 I use the same keys values because i use ini files grCor
I have to use this loop because if want the first occurence after e.g [C] f4=01 [D] f4=02 I use the same keys values because i use ini files grCor