Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
We interrupt this program...
Message
From
05/12/1997 12:57:01
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
We interrupt this program...
Miscellaneous
Thread ID:
00064056
Message ID:
00064056
Views:
71
In my startup program I have ON KEY LABEL ESC DO EscKey IN MyProcFile.
The procedure is as follows, where 'Nothing' is a procedure that just has a 'RETURN.'

PROCEDURE EscKey
if type("_screen.activeform")="O"
if pemstatus(_screen.activeform,"OnEscape",5)
_screen.activeform.OnEscape()
else
_screen.activeform.release()
endif
else
do Nothing
endif

My goal is to let each form decide how to handle the escape key. Mostly this works, but sometimes, particularly while calling up one form from another (the cursor is an hourglass), the user gets the FoxPro message "Program Error: ***Interrupted***". Why is that? How do I avoid it?

Thanks
Elyse
Elyse Pomerantz
Next
Reply
Map
View

Click here to load this message in the networking platform