Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 6.0 variable declares
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Conférences & événements
Divers
Thread ID:
00101472
Message ID:
00101771
Vues:
36
Mr. Booth,

I am not sure of the meaning of the term loose typing. Is it equal to weak typing?

Variable names should always be declared with LOCAL, PRIVATE or PUBLIC in any reasonable application, either locally or globally. They do not have to be strong typed.

This should be a runtime option that can be turned on. This way if I mispell a variable called phoneExt and someplace I initialize phonExt the system should throw an error that variable was never declared as a proper variable.

There are cases where you would not have to declare the variables (such as in the command line) but other than that it would be bad practice if you did not.

VFP is at the point where it should close this development nuisance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform