Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private Data Sessions -- What are they good for
Message
From
09/12/1999 10:07:05
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00300134
Message ID:
00300970
Views:
29
Hi Jim,

That "trick" of using the default datasession in a child form to share a parents DS, with the parent using a private datasession is one that a lot of people are simply unaware of. It's not really well documented. Perhaps it should be the subject of an article here or in one of the mags.

>
>There is one situation where a private data session is advantagous, that is with a child fomr that needs to directly manipulate its parent form's data. If a modal form is called from a form with a private data session and the modal form has the default data session, then the data session that the modal form runs in is the private data session of the calling form.
>
>Therefore you can create4 interfaces that might show summary information on the main form with subforms that allow the editing of the complete information. The subforms would be modal and would be set to the default data session so they run inside the data session of the calling form. For example you could create an address editing form that could be called from the customer, employee, and vendor edit forms.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform