We are going out of scope
My original question was that the statement DO WHILE TRUE gives an error in the JAVA generated code not in B4A, but when write DO WHILE some_var the error do not exist ...
But, responding to your question :
My sub have to read all items in a array and test some situations.
I can do :
DO WHILE xxx(i) = "some val" or xxx(i) > other_val and xxx(i) < another_val
do some proc with valid data
i = i + 1
LOOP
or I can do
DO WHILE TRUE
if xxxx then return
if xxxx and yyy then return
if bla bla bla then return
do some proc with the valid data
i = i + 1
LOOP
I think the second example is more easy to read and understand
(for me of course)
The array is only 1000 items and I thing that is very fast to read all.
Thanks
Rubens Jr.
PS : Sorry, english is not my native language