[Gambas-user] SUB in background

Pino Zollo pinozollo at ...626...
Thu Apr 10 21:02:05 CEST 2008


Alle 21:56, mercoledì 9 aprile 2008, hai scritto:
> 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
> >
Thanks Lee,

I did try it: I did put a WAIT without parameter, at the end of every record 
elaboration.

There was some improvement:

Now the other windows are not gray any more, the ProgressBar moves smoothly, 
but it is not possible yet to use the other forms, for instance to fill other 
datas or to click on some button...

almost good !

Regards
Pino




More information about the User mailing list