[Gambas-user] TextBox and CR
Benoît Minisini
gambas at ...1...
Wed Apr 21 12:04:08 CEST 2010
> On Tuesday 20 April 2010, Benoît Minisini wrote:
> > > On Tuesday 20 April 2010, Caveat wrote:
> > > > Hi Rolf,
> > > > I guess you're right. I threw the code together very quickly, just
> > > > to make a working example for you. But 100% correct, you don't need
> > > > lcode or AS Variant or DIM or lcode = Key.Code... :-)
> > >
> > > In general I should say the same. But Key.Code is in a way dynamic and
> > > a new KeyPress could occur before the related subroutine is finished.
> >
> > No, unless you explicitely call the event loop (with WAIT).
>
> So it "could" happen. Not in the given example but in another
> project that is using WAIT. i.e. output keybaoard characters to a
> 24 character LCD display that need that WAIT.
>
Why do you need to call WAIT? You should only use it when you want to refresh
your GUI during some heavy processin. Otherwise, if you should use SLEEP.
Regards,
--
Benoît Minisini
More information about the User
mailing list