Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On error and Popups
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
On error and Popups
Miscellaneous
Thread ID:
00126745
Message ID:
00126745
Views:
61
Situation:

ACTIVATE POPUP. . .

Choose an item

ON BAR runs some code. In this code an error occurs.

My error handler (which has always worked), catches the error, displays the message and attempts to shut down the application. Well, Funny things start happening! I get all sorts of weird effects! The program doesn't shut down and you get erros like "Feature not available", "Syntax Error", or the program tries to resume after the line of code that caused the error (which in turn causes an error because the previous command needed to work in order for the next line to work, yadda, yadda, yadda).

My question is this. Is there some way to handle errors that occur while you're in an ACTIVATE POPUP? I'm convinced that the Activated POPUP has somethingn to do with this problem. I've tried doing Clear popups, deactivate popups, and all sorts of combinations in the error handler. But I still don't get a clean shutdown after the initial error message is displayed. It's like Clear events isn't working because Fox wants to go back to the line after Activate popup (as it's supposed to normally). What am I to do? Is there any way to terminate a popup without program execution returning to the line after it? Is that what might be happening?

Thanks!
Next
Reply
Map
View

Click here to load this message in the networking platform