Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing a view when calling another form
Message
From
11/07/2002 13:07:07
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
11/07/2002 12:05:17
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00677584
Message ID:
00677638
Views:
20
Is the second form also using the view that's being closed? If so, you probably have its environment's AutoCloseTables = .T. This means it will close the views it opened on its Init(). Setting it .F. should cure the problem.

Not sure what you're seeing with DoForm instruction. Sorry.

Hope that helps,
---J

>Hi All - Using VFP 7.0 and MM 6.1.2. I have a cizobjnolistmaintform with a business object. On the page I also have 2 command buttons, each does a doform to another cizobjmaintenanceform. The second form comes up fine. It has its own business object. When I close out the called form, and return to the original, one of my views is no longer there. I have tried the called form in its own private data session and as a default data session. A second strange thing I noticed is that in the command button with the =doform... control immediately goes to the next instruction. If I put a suspend in after the =doform, the new form shows and then I hit the suspend. I would have thought the suspend would not have happened until I close out the called form. My main proglem though is what is happening that I am losing a view in the original form. Thanks for any help.
>
>Tom Breay
>INFOLUTIONS
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform