[Gambas-user] SUB in background

Lee McPherson leemcpherson at ...626...
Thu Apr 10 03:56:01 CEST 2008


The trick is to use the command WAIT.  From what I understand, this is 
somewhat equivalent to the Visual Basic "DoEvents".  Actually, somehow 
I'm not using it correctly in my own code, but I'm working on it :)

Do a search on both WAIT and DoEvents to learn more.

-Lee

Pino Zollo wrote:
> Hi everybody.
> Is there a way to call a SUB in background ?
>
> In my applications, from time to time the user runs a task which consists in 
> filling a file with informations contained in the database.
>
> This task may take for 3 to 5 minutes.
> During this time all the windows are frozen and the user con not do anything 
> but waiting.
>
> During this time only th ProgressBar moves, and not continuously.
> In a multitasking environment there should be a way to keep working while a 
> low priority task is in execution.
>
> Thanks
>
> Pino
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>   





More information about the User mailing list