Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stop a scan
Message
 
 
À
27/02/2013 18:06:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01567088
Message ID:
01567097
Vues:
74
>>>VFP9SP2
>>>
>>>Hi,
>>>
>>>I would like to conditionaly stop a scan. The easiest way would be to {set escape on} and invoke the ESC key. However the application rules that 'settings' should not be used. Do we have an other option?
>>>
>>>Regards,
>>>
>>>Koen
>>
>>You set some variable and in the scan you check
>>
>>scan
>>
>>   if m.StopExecution
>>      exit
>>   end
>>
>>endscan
>
>But how does m.StopExecution get set? ON KEY LABEL ESC?

Good question. In my older code it was set in ON KEY LABEL ESC. The Cancel button can also try to set this variable. In this case we need DoEvents() added to the scan code.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform