Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User presses cancel in a prameterized view
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00262879
Message ID:
00262965
Views:
17
>I have a view that has a prameter. The user gets prompted to put in the value and press OK, but there is also a cancel button. When the user presses this it generates an error that causes my application to abort (basically generate an errorlog entry and quit). Is there a way I can use a parameterized view without a cancel button coming up or does anyone have any ideas on how to trap the error that the cancel button causes before my error trapping routines kick in. Any help would be appreciated.

Bret,

The others have given you some good ideas of how to avoid the problem. However, if you want to continue to use the native parameter dialog, then you will need to check after the dialog to if the view was created or has any data before you allow your code to continue.

The problem here is that your code continues assuming that the view now exists and it may not.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform