How to Use Indirect Referencing of Objects CreativelyID: Q143298 3.00 3.00b WINDOWS
The information in this article applies to:
SUMMARYVisual FoxPro allows indirect referencing of objects with THIS, THISFORM, THISFORMSET, and object.PARENT. With a little code, you can expand this list to include THISPAGEFRAME and THISPAGE. The example in this article will not work with the Init event of an object, however it can be used elsewhere.
MORE INFORMATION
Step-by-Step Example1. Create a new form, and place a pageframe on the form. 2. Add the following code to the Page1.Activate event:
3. Add the following code to the Page1.Deactivate event:
4. Repeat steps 2 and 3 for Page2 using the exact same code.
5. Add a command button to Page1, and place the following code in the 6. Run the form. Click the command button. Note the Caption of page1
Additional reference words: 3.00 3.00b VFoxWin
KBSubcategory: FxprgClassoop
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |