Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sharing tables inside DE between forms
Message
 
 
À
05/07/2007 06:00:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01237784
Message ID:
01237861
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform