Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check variables
Message
 
À
04/08/2004 19:46:52
Mike Zhu
Icube Info International
Fremont, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00930854
Message ID:
00931558
Vues:
21
>In VFP, variables are not predefined. Is there any tools to check all the varibeles or list them. Because if you type a wrong variable you won't know it until user run the program and get error. Thanks a lot.

Mike,

By default any variables declared as PRIVATE or LOCAL are initialized to .F.

What I do is to add the variables to a LOCAL statement as I first access or assign them.

This is really a problem with testing. If you properly test the code, then these issues go away.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform