/ Forside / Teknologi / Udvikling / VB/Basic / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
VB/Basic
#NavnPoint
berpox 2425
pete 1435
CADmageren 1251
gibson 1230
Phylock 887
gandalf 836
AntonV 790
strarup 750
Benjamin... 700
10  tom.kise 610
jump out a loop
Fra : Danny Mertens


Dato : 25-06-01 13:39

How can i jump out a loop when a button is clicked?



 
 
Rayman (25-06-2001)
Kommentar
Fra : Rayman


Dato : 25-06-01 18:12

..... Exit For
..... Exit Wend
..... Exit Do.... Depending on the loop type
"Danny Mertens" <dmertens@home.nl> wrote in message
news:NhGZ6.133118$y7.1054380@dbsch1.home.nl...
> How can i jump out a loop when a button is clicked?
>
>



Mikkel Bundgaard (25-06-2001)
Kommentar
Fra : Mikkel Bundgaard


Dato : 25-06-01 21:43

Danny Mertens <dmertens@home.nl> wrote in message
news:NhGZ6.133118$y7.1054380@dbsch1.home.nl...
> How can i jump out a loop when a button is clicked?
>
Hi Danny

You can use one of following:

Exit Do
or
Exit For

Depending on which kind of loop it is.
--
Mvh.
Mikkel Bundgaard
RUC Datalogi
http://officehelp.gone.dk


Danny Mertens (27-06-2001)
Kommentar
Fra : Danny Mertens


Dato : 27-06-01 09:36

thx but the problem is i cant push the cancel button while being in loop ?
I can only push it while ready with loop

"Danny Mertens" <dmertens@home.nl> schreef in bericht
news:NhGZ6.133118$y7.1054380@dbsch1.home.nl...
> How can i jump out a loop when a button is clicked?
>
>



Rayman (27-06-2001)
Kommentar
Fra : Rayman


Dato : 27-06-01 15:41

In that case you must insert
DoEvents
in your loop, which stops VB and checks for events like mouse, keyboard,
window move and alike.

DoEvents can be very slow so perhaps you should only use it for every 10th
run through your loop...


"Danny Mertens" <dmertens@home.nl> wrote in message
news:_Vg_6.144849$y7.1153985@dbsch1.home.nl...
> thx but the problem is i cant push the cancel button while being in loop ?
> I can only push it while ready with loop
>
> "Danny Mertens" <dmertens@home.nl> schreef in bericht
> news:NhGZ6.133118$y7.1054380@dbsch1.home.nl...
> > How can i jump out a loop when a button is clicked?
> >
> >
>
>



Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408929
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste