Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing a view when calling another form
Message
From
11/07/2002 15:42:38
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00677584
Message ID:
00677724
Views:
26
Thanks Dan - Yes the view is there before the =doform. OK on the modal. Now that I think about it makes sense. The second form is in a private data session. I think the modal will help in debugging this puppy.

BTW, are u an independent. Where is Osceola. Originally from Toledo. Get into Brownsburg IN often. Take care and thanks again.

>By default cbizobjnolistmaintform is modeless. You need to make it modal for it not to come out of the DOFORM until closed. You need to have the cbizobjmaintenanceform set to private data session so that your views and tables in your calling form don't get effected by the called form. Is the view there before the DOFORM and not right after the DOFORM? You might be able to put a "watch" on a USED('v_myview') in the debug window and see what is making it go away.
>
>HTH
>
>Dan
>
>>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
Reply
Map
View

Click here to load this message in the networking platform