Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to interrupt long loop with mouse click?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01387703
Message ID:
01387867
Vues:
56
>>I put it in Form.Activate now (it was in different place) and it still works Ok. Maybe, your loop code is something specific. Try it with 'empty' loop, just DOEVENTS.
>
>I thought my loop was as 'empty' as it can be. Here is the code (I borrowed it from Anatoliy's example):
>
>
>LOCAL nIndex
>DO WHILE NOT thisform.lCancel 
>
>    CREATE CURSOR cs (num N(10))
>    FOR nIndex=1 TO 1000
>        INSERT INTO cs VALUES (nIndex)
>    ENDFOR
> 
>    ?? "."
>    DOEVENTS
> 
>ENDDO
>RETURN 
>
>
>What should I clear from my loop?

Put DOEVENTS inside the FOR loop.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform