How To Use the Session Class to Provide a Private Data Session (248116)
The information in this article applies to:
- Microsoft Visual Studio 6.0 SP3
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q248116 SUMMARY
Visual Studio 6.0 Service Pack 3 added the Session Class to Visual FoxPro. This class allows you to create a private data session without the use of a form. The benefit to this is that it allows you to create a lightweight (in terms of resource usage) custom object with encapsulated data. You previously would have needed a form, with all its associated overhead, or an empty formset to do this.
One of the best places to use this is in multithreaded DLLs (also added in Service Pack 3) since resource usage is at a premium in most cases where you would be using them.
REFERENCES
For more information, see the Session Object documentation in the MSDN Visual FoxPro documentation, or "Additional Language Elements" in the Vfpsp3.chm file which ships with Visual Studio 6.0 Service Pack 3.
(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Garrett Fitzgerald, Microsoft Corporation.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbCodeSnippet kbhowto kbOOP KB248116 |
---|
|