[Gambas-user] Re : How to interrupt a loop ?
serge bouc
serge.bouc at ...402...
Thu Sep 28 17:38:02 CEST 2006
comisat wrote :
> hi
> if i've understood the question,
> try this way..
> -------------
> private blnStop as boolean
>
> public sub btnStopLoop_click()
> blnStop=true
> end sub
>
> public sub Compute()
> if blnStop=true then return
>
> compute code
>
> end sub
> -------------
> bye :)
>
> comisat
Thanks for the idea. It does'nt work, since the
click event on "btnStopLoop" is not recognized while
inside the compute loop. So nothing happens when
I click on the stop button during the computation.
Thanks anyway.
Serge.
More information about the User
mailing list