<div dir="ltr"><div>umm that means that the sleep instruction will "hang" the program during that period/time! so may i have to use with caution!<br><br></div>thanks for all<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><font color="#888888">Lenz McKAY Gerardo (PICCORO)</font><div><font color="#888888"><a href="http://qgqlochekone.blogspot.com" target="_blank">http://qgqlochekone.blogspot.com</a></font></div></div></div>
<br><div class="gmail_quote">2018-08-21 12:06 GMT-04:00 T Lee Davidson <span dir="ltr"><<a href="mailto:t.lee.davidson@gmail.com" target="_blank">t.lee.davidson@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 08/21/2018 11:39 AM, PICCORO McKAY Lenz wrote:<br>
> ahhhhhhh! as wiki said (wiki don load property in the ide, too much dealy) "waith" can be used inside event's, and sleep's<br>
> cannot be used inside ?<br>
<br>
</span>It's the other way around. SLEEP can be used inside an event handler, and WAIT cannot.<br>
<span class=""><br>
<br>
> noted said "The event loop is not called during a sleep, and so events are not processed." so means that during the "sleep<br>
> duration" no one event will be raised right?<br>
<br>
</span>Correct. If you need to wait for an event to be raised, then you need to use WAIT since that allows the event loop to occur.<br>
But, as Jussi stated, WAIT cannot be used within and event handler. Doing so can lead to event collisions and undefined behavior<br>
including program crash.<br>
<br>
<br>
___<br>
<span class="HOEnZb"><font color="#888888">Lee<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</div></div></blockquote></div><br></div>