Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing Data in a Private Data Session
Message
 
À
20/04/1999 12:08:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00210148
Message ID:
00210153
Vues:
25
>Hi all,
>
>I'm trying to access the fields of a data table or the contents of variables in a form running in a private datasession - from another .prg running from the menu, not the form. I can do it if the form is not running in a private datasession and I can't change a dataseeeion while the form is running. And I've done it by a button on the form but I want to do it from the menu.
>
>The purpose of this is to facilitate the user clicking on a memu item called 'Letters' and access a .prg that will drop the name/address of the party currently displayed on the form into a Word doc.
>
>Suggestions will be appreciated. TIA.
>
>Regards,
>
>Paige


You can use the forms DataSessionID property. You will need to pass this from the form unless you have given the form an alias. Basically, SET DATASESSION TO form.DataSessionID - don't forget to set it back to what it was before changing it.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform