Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exiting a loop gracefully
Message
De
27/04/1999 18:37:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Exiting a loop gracefully
Divers
Thread ID:
00212793
Message ID:
00212793
Vues:
55
I have a backup program that uses a DO WHILE loop to copy files from one drive / directory to another...

The loop is structured as follows:
<b>
nIndex = 1
DO WHILE nIndex <= ALEN( aFileList, 1 ) <i>AND ! THISFORM.lAborted</i>
   .
   .
   .
ENDDO
</b>
The user clicks "Start" to begin the backup.

The caption on the "Start" button changes to "Cancel"

When the "Cancel" button is clicked, I set THISFORM.lAborted TO .T. but the loop doesn't exit...

What am I missing here??

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform