Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stopping a Long Routine
Message
De
07/10/2005 11:40:39
 
 
À
07/10/2005 11:32:45
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01057205
Message ID:
01057208
Vues:
8
Mike

Set up an ON ESCAPE condition to set m.Stop to "YES" ?

Terry

>I have a button that starts a method that can be very time consuming. As the method progresses, it updates the screen to show information about its progress.
>
>I am now trying to find a way of stopping the method part way through.
>
>I have created a variable M.STOP which is set to NO at the beginning of the method. The method checks the value of M.STOP at various points and will terminate itself if M.STOP is found to be YES.
>
>I have added a STOP button that sets m.STOP = "YES" when clicked.
>
>The problem is that when the method is active, I cannot click on the STOP button because the mouse doesn't appear to work until the method is finished.
>
>The only key that appears to work is ESC.
>
>How do I address this problem?
>
>Mike Smith
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform