Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sharing tables inside DE between forms
Message
 
 
To
05/07/2007 06:00:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01237784
Message ID:
01237861
Views:
19
Robert,

The only form you were needed to change was the Lookup form, where instead of Private DS you would use Default DS (set it in design-time).

Here is how it works:
Parent form has a private DS
Child form (called by parent) has Default DS

Thus child form automatically shares parent's DS. No manipulation with DS is required.

I believe this idea was initially introduced by John Koziol 7 or more years ago.


>Lots of forms call this picker form and and I'm looking for a way to easily manage this task of reusing the tables.
>Assigning the 'Thisform.DataSessionId = _screen.ActiveForm.DataSessionId' in the form's init method fits perfectly and I don't have to change every single form.
>
>>>Hi Martina,
>>>
>>>I was thinking of trying this way today. Thanks for advice.
>>>
>>
>>Why you don't want to use default datasession to share parent's private DS? Or do you want to ensure using private DS in case there is no "caller" form?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform