Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable Scoping
Message
De
10/06/1999 05:33:42
 
 
À
09/06/1999 16:09:52
Larry Rix
Larry Rix & Associates, Inc.
Westminster, Colorado, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00228126
Message ID:
00228280
Vues:
13
>Hello,
>
>I am somewhat perplexed. There seem to be only three memvar scope choices -- LOCAL, PUBLIC, and PRIVATE. PUBLIC gives everything in my app access. PRIVATE seems to keep PUBLIC variables by the same name partitioned from their PUBLIC counterparts. LOCAL is kind of what I want except it will not scope to a lower level program (i.e., the rest of the Form components). Here is what I am after:
>
>1. A variable scope that is limited to the ENTIRE Form (not just the higher level parts of the form).

Add a member property to the form; it's in scope throughout the life of the form, and can be referenced using thisform.propertyname within the form, or form object ref.propertyname outside the form if necessary

>2. Some guidance about PRIVATE scoping. Does this scope technique allow me what I am after in item #1?
>

Yes
>Thanks before-hand for your input. :)
>
>Larry Rix
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform