Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable declaration
Message
 
À
17/05/1999 13:03:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00219669
Message ID:
00219689
Vues:
17
> in vb i can declare a variable in the general declarations section then i can
> use this variable throughout the entire form via different procedures and so
> on i can change the value and everything now in foxpro i know this can be
> done as well but where do i declare the global variable

You can define public variables in any code snippet (such as the INIT), like so:
PUBLIC VarName
BUT: This is very bad design and considered a big no-no in Visual FoxPro. You should rather define custom properties instead.

Markus




Markus Egger
President, EPS Software Corp
Author, Advanced Object Oriented Programming with VFP6
Publisher, CoDe Magazine
Microsoft MVP since 1995
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform