How to Create a Private Data Session in a FormID: Q128393 3.00 WINDOWS kbtool The information in this article applies to:
SUMMARYYou can use a Private Data Session in Visual FoxPro as one of the properties of the form. This will allow two sessions of the same form to run with a separate record pointer in each instance.
MORE INFORMATIONTo create a Private Data Session in a form, follow these steps: 1. Type the following command in the Command window, and press the ENTER 2. Using the right mouse button, click the form, and select Data
3. Using the right mouse button, click the Data Environment, and select
4. Select the Other option in the Add Table or View dialog box.
5. Select the Customer table from the \VFP\SAMPLES\DATA directory. 6. Drag the Company field from the Data Environment to the form. Note that 7. Choose the push button option from the form controls toolbox.
8. Go to the click event of the push button and double-click. Type the 9. Go to the properties dialog, and select Form1 as the object. Then
10. Save the form. Then run it by typing the following command in the
11. Execute the same command again, and use the push button to move in the
Change the DataSession property back to default and run two sessions of the
same form and note the difference in the movement of the record pointer.
Additional reference words: 3.00 VFoxWin KBCategory: kbtool KBSubcategory: FxtoolFormdes
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |