Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question on datasessions
Message
 
 
À
16/09/2009 13:36:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01424766
Message ID:
01424769
Vues:
51
This message has been marked as a message which has helped to the initial question of the thread.
>To create a certain report, one form calls a program - I believe the program would share the same DataSession with the form.
>
>The program then calls another form, which shows some options for the user to select (for now, only the desired destination).
>
>Since some of the data was prepared in the previous form or program, I want to share the DataSession; I gave the commands:
>
>
>* Form.Init()
>lparameters... toForm
>ThisForm.DataSessionId = toForm.DataSessionId
>
>
>... where toForm is the calling form.
>
>This works, but I wanted to ask whether this is considered the correct approach.

No, the best approach is to have the parent form to use Private DataSession and the child form to use Default DataSession. This way the child would share the parent's DS.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform