[Gambas-user] INC Application.Busy

Fabien Gambasfr at ...11...
Tue Jul 1 21:37:09 CEST 2003


Le Mardi 1 Juillet 2003 16:44, Rob a écrit :
> On Tuesday 01 July 2003 09:09, Henry Ismaili wrote:
> > INC Application.Busy
> > DEC Application.Busy
> > Can someone explain what this does ?
>
> INC adds 1 to the variable upon which it acts; DEC subtracts 1.
> C/Perl/Javascript people can think of it as
>
> Application.Busy++
> Application.Busy--
>
> and of course certain flavors of assembler programmers will also feel right
> at home, if only with these two operators ;)
>
> See:
> http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasINC
> http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasDEC
>
> for some illuminating example code...
>
> Rob
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


Hem you forget something rob !

Application.busy :
if application.busy = 0 then the mouse pointer is normal
if application.busy > 0 then the mouse pointer show an hourglass.

thats all !


so :
INC Application.Busy
'the process is run (application.busy = 1)

DEC Application.Busy
' End of the process (application.busy = 0)

Fabien




More information about the User mailing list