[Gambas-user] SHELL or EXEC background with gb.web.gui

Mayost Sharon sharon at 455.co.il
Thu Dec 24 20:57:07 CET 2020



I see in the documentation of gambas:

In Gambas 3, there is no default event name anymore.
In other words, you must add AS "Process" to get the same behaviour as Gambas 2.


---------- Original Message -----------
From: Bruce Steers <bsteers4 at gmail.com>
To: Gambas Mailing List <user at lists.gambas-basic.org>
Sent: Thu, 24 Dec 2020 18:53:02 +0000
Subject: Re: [Gambas-user] SHELL or EXEC background with gb.web.gui

> Also , looking at it and again without testing i'd say try not using the As
> "myp" and just using the default...
> 
> *Public Sub Process_Kill()*
> 
> *WebLabel2.Text = "Kill" End*
> 
> On Thu, 24 Dec 2020 at 16:59, Mayost Sharon <sharon at 455.co.il> wrote:
> 
> > Hello
> >
> > (For example I did sleep but in practice I need to run a command to
> > convert that it takes some time)
> >
> > I'm trying to run any command in the background without WAIT
> >
> > so:
> >
> > Export
> >
> > Public Sub WebTimer1_Timer()
> >
> >   WebLabel1.Text = Now()
> >
> > End
> >
> > Public Sub WebButton1_Click()
> >
> >   Dim hProcess As Process
> >
> >   hProcess = Shell "sleep 5" As "myp"
> >
> > End
> >
> > Public Sub myp_Kill()
> >
> >   WebLabel2.Text = "Kill"
> >
> > End
> >
> >
> > I see that it continues to the next line but on the page I see that the
> > time display is stopped until the end of the command.
> >
> > At the end of the command he does not update what is inside the Kill event
> > WebLabel2.Text = "Kill"
> >
> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> >
------- End of Original Message -------



More information about the User mailing list