Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private Data Sessions -- What are they good for
Message
From
10/12/1999 18:59:50
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00300134
Message ID:
00302083
Views:
34
>>Bob,
>>I don't open the same file many times. That's the point that I don't need in this.
>
>Ed,
>
>How do you handle a customer form looking at one customer while an invoice form is referencing a different customer?

It depends what are user requirements. If the purpose is to coordinate these two forms, i.e. invoice form should always show invoices for selected customer then its activate event will reset its masterkey property to the oApp.formamnager.customerid and fire Form.Fillcontrols method to populate form's controls.
If the purpose to provide independent mode, i.e. user can pick-up one customer on customer form and invoices for another customer on invoices form then Activate event will not move masterkey property, it will be managed by form itself (navigation or some combo selection etc and accordingly fire FillControls(). In some last projects I use Assign here.
The code in Activate event is switched to exclude unnecessary 'refreshments' if masterkey property didn't change.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform