I am looping through a for next loop
i am sure i am totally confused about the usage of wait for.
I am however using this 'wait for' in many projects for http job record fetching and processing.
all i want to do is, the for loop should be made to wait till blnok becomes true.
can anyone help ?
B4X:
for i =0 to 100
blnok=false ] declared globally
dim blngonext as boolen=false
call reset
wait for (blnok) complete (blngonext )
if blngonext = true then
... some code
endif
next
private sub reset
...lot of commands executed here ..
blnok=true
end sub
i am sure i am totally confused about the usage of wait for.
I am however using this 'wait for' in many projects for http job record fetching and processing.
all i want to do is, the for loop should be made to wait till blnok becomes true.
can anyone help ?