How to Scope Variable Declared in Event CodeLast reviewed: October 29, 1995Article ID: Q138680 |
The information in this article applies to:
SUMMARYA variable declared in event code is not visible outside that code unless the variable is declared Public or you crate a new form property.
MORE INFORMATIONVariables declared in event code for objects are only visible to those objects at the time the event code is running. There are two ways to make variables visible to code outside a specific event.
Method OneDeclare the variable Public. To do this, add the following line of code to the Load event of your form:
Public X Method TwoCreate a custom property of the form. To do this, follow these steps:
Step-by-Step Example
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |