Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escape Append From
Message
 
 
À
07/04/2003 16:52:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00774905
Message ID:
00774912
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
Peter,

Of a top of my head
lcSaveOnEscape = ON("ESCAPE")		&& Save previous ON ESCAPE setting
lcSaveSetEscape = SET("ESCAPE")		&& Save previous SET ESCAPE setting

SET ESCAPE ON
ON ESCAPE llUserCanceled = .T.
llUserCanceled = .F.
APPEND FROM ...

SET ESCAPE &lcSaveSetEscape
ON ESCAPE &lcSaveOnEscape 

IF llUserCanceled 
	* Process was interrupted by an user.
ELSE
	* Process completed
ENDIF	
>Hi to all,
>
>Who knows a way to abort an APPEND FROM (delimited with tab)?
>
>I've tried to use the FOR clause, but it won't abort. Instead, vfp will continue with the remaining source-records. In this case, I need a WHILE clause, but it's not there.
>
>The SET ESCAPE OFF is not my first thought, since it's an application for endusers.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform