Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Neeraj Charne
  Where is Neeraj Charne?
 Indore
 India
 Neeraj Charne
 Tags
Subject: RE: how to define & use views
Thread ID: 209404 Message ID: 209408 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Projects and Design
Date: Sunday, December 28, 2008 1:32:36 PM         
   


> I created Two forms each form is using a common view which
> is filled according to form type (say:- salary & Non salary)
>
> now i want that any form can load first & any second
> the first form view should automatically refresh after second form is released (view should remain open but if no more use it should be close)
>

You can use each view again in each form by adding it to the form.DataEnvironment or opening it in Form.Load().
If the form has a private datasession, the View will be closed when the form gets released.
You can Requery() each view whenever you want - if one form shall do so when the other one closes, it may depend on your design specs: if for instance the second one is modal and being called from the first, you can do the Requery() right after the "Do Form secondForm" line.
At which point do you have problems?


hth
-Stefan

ENTIRE THREAD

how to define & use views Posted by NEERAJ CHARNE @ 12/28/2008 12:55:15 PM
RE: how to define & use views Posted by Stefan Wuebbe @ 12/28/2008 1:32:36 PM
RE: how to define & use views Posted by NEERAJ CHARNE @ 12/31/2008 7:53:18 AM
RE: how to define & use views Posted by Stefan Wuebbe @ 12/31/2008 11:50:35 AM