Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private variables for use in a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00226017
Message ID:
00226050
Vues:
27
>I have a form with some memory variables that I only need while the form is in use. In the init method, I set them all to .f. since they are for check boxes. The form runs fine, but then when I do a comparison with one of the variables, I get datatype mismatch, and in the debugger I see the value of the variable is 1, not .t. What's up with that? Thanks! Marvin

Once the Init event goes out of scope, your private variables disapper. Use form properties instead so that the values persist through the life of the form.
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