Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form with Parameterized View Crashes in Runtime
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00564583
Message ID:
00564593
Views:
16
>I've got a form using a parameterized local view to fill a grid. My local view is parameterized, based on a key value from the parent table. In the VFP design environmet everything works great. However, when I compile, and run, either as an app or an exe, the form loads, and then hangs just as the Data Environment attempts to initialize.
>
>The view is in the data environment, and was added after the parent table, if that makes any difference.
>
>I'm thinking this may be an issue with the parameterized view.... If I open this manually, I need to have the parent table already open before the view is opened, otherwise, it attempts to ask for a key for the parameter. Is there some way to guarantee the order in which things open in the data envinronment?
>
>I added code to the error method of each table in the data environment, and the error is triggered when the DE attempts to open the view.
>
>TIA for any ideas.
>
>--- Larry

I rarely use DE, but prefer to code opening of tables in Load event of the form. This way you would not depend on unknown order...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform