Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interrupting process gracefully by ESC
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01054470
Message ID:
01054474
Vues:
18
This message has been marked as the solution to the initial question of the thread.
Move the whole statement to some function or method so to have the possibilities to debug. Maybe the m.loProcess isn't an object when you press ESC? if the m.loProcess is a local variable maybe it is out of scope? All of this is only theoretical :o)


>Hi everybody,
>
>In button's code I added a call to form's method. In this method I have the following:
>
>on escape ;
>			iif(YesNo("Are you sure you want to stop?") ;
>			and vartype(m.loProcess) = 'O', m.loProcess.cError = 'User Interrupted the assigning queue process','')
>
>right after instantiating loProcess object. First of all, my select statement in the QueueProcess class (loProcess is the instance of this class) is interrupted regardless of my answer (Yes or No). This I can understand. However, after interrupting the process by ESC the cError is not set (I have cError_Assign method and I put a break point into this method). Why I can not use ON ESCAPE the way I'm trying to use it? What other option I have?
>
>Thanks in advance.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform