V
Vergassivellaunus
Guest
During code execution, if i have to wait for an event to hapen (serial data to arrive from a PC port for example), i cannot use:
While (condition)
end while
beacouse i could not use buttons on form and it seems that, as soon as entering this cicle, microprocessor does not even complete what it was doing. If data do not arrive, i have to reset the application. Even a timer, when entering the while loop, does not work anymore.
If I use:
do
if condition=true then
exit loop
end if
application.doevents
loop
all works well.
So my question is why this difference? Why this important feature is not explained in microsoft reference?
Regards
Continue reading...
While (condition)
end while
beacouse i could not use buttons on form and it seems that, as soon as entering this cicle, microprocessor does not even complete what it was doing. If data do not arrive, i have to reset the application. Even a timer, when entering the while loop, does not work anymore.
If I use:
do
if condition=true then
exit loop
end if
application.doevents
loop
all works well.
So my question is why this difference? Why this important feature is not explained in microsoft reference?
Regards
Continue reading...