Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape Append From
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00774905
Message ID:
00774912
Views:
16
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform