Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need help with error trapping and forms
Message
From
07/07/1999 16:34:44
 
 
To
07/07/1999 16:28:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00238505
Message ID:
00238510
Views:
11
>Hi all,
>
>I have a VFP5.0 app where (please don't ask why - it's a long story) all the forms are modal and executed from a generated menu. There's a MAIN program that sets up basic common vars and such and runs the menu. I needed to add error trapping to the app and ran into a snag. Basically, I created a form that gives error details, allows the user to enter a text explanation and takes an error-value from the user which allows me to calculate an over-ride code using a "secret" alogorithm. This last bit allows me to determine if the user can safely 'ignore' the error - they need to get the code from me otherwise they can only 'retry' or 'cancel' (this by way of saying the form is important).
>
>In the MAIN program, I issue the ON ERROR with message(), errorno(), etc. etc. The ON ERROR routine itself calls the error details form. Of course, since the form on which the error occurred is MODAL (and ALWAYS ON TOP) it cannot lose the focus and, consequently, the error form displays behind the active form and cannot be 'activated' in any case. So, the question is, is there a way to change the form to MODELESS (temporarily) from the error routine (which is located in a general procedure file initialized in MAIN with SET PROCEDURE TO...)? If not, any suggestions for a [simple!] work-around? I really don't want to have to re-write the entire system...
>
>Thanks in advance,
>
>-Arne

After form initialized you cannot change Modal to Modeless. However, you may hide the form when 'Error' form will appear.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform