The information in this article applies to:
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. MORE INFORMATION
An example of how to use this new class follows.
To see this class in action, save the above code into MyDS.prg and run the following code from the Command window.
SET opens the Data Session window. If you switch between the default data session and MyPrivateDS, you see myDSTest open in both, with the record pointer at the top of one and the bottom of the other. 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. Additional query words: KBDSE
Keywords : kbOOP kbVFp600 kbVS600sp3 kbGrpFox kbDSupport kbCodeSnippet |
Last Reviewed: December 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |