Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a SET LOCAL VARS ON
Message
 
À
29/08/2006 09:45:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01149279
Message ID:
01149420
Vues:
9
Hilmar,

Although not quite the same, you can use _VFP.LanguageOptions = 1 to have the debuger inform you of undeclared variables. There are also a couple of programs out there in the community that help, but do not ask me the names for I completely forgot!

>Some languages have the option, not to make the variable local (or the equivalent in the corresponding language) by default, but to give a compiler error if the variable is not properly declared. I have seen something like this in Visual Basic, I think it was a command like "option explicit". (Note: My familiarity with VB is very superficial.)
>
>I would expect Visual FoxPro to behave similarly, with some option to give an error, or perhaps a warning, for non-declared variables - but I suspect it hasn't been implemented yet, even in the newest versions. Nor do I know if it would be easy to implement.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform