[Gambas-user] SUB in background
Steven Lobbezoo
steven at ...1652...
Thu Apr 10 13:55:07 CEST 2008
Hi,
I put a timer on my form with a maximal delay (3600) .
Then I attach this routine : (Tmer is a global int)
PUBLIC SUB Timer1_Timer()
TMer = TMer + 1
IF TMer = 20 THEN ' this to have it fire up only every 20 secs or so
Do_mysub()
TMer = 0
END IF
END
It works like a charm in the background.
Steven
Le mercredi 09 avril 2008 à 10:48 -0400, Pino Zollo a écrit :
> 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