Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Data in a Private Data Session
Message
 
To
20/04/1999 12:08:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00210148
Message ID:
00210153
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform