Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable Naming
Message
De
08/01/2000 18:21:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Variable Naming
Divers
Thread ID:
00315006
Message ID:
00315006
Vues:
71
lcname is a local character
pcname will never exist in my program, but it would be a public character

Why should I bother?

What is with prefixing variables with their types? It doesn't take me long to figure out (ie, no time) that if you are doing numeric manipulation to a variable, its a number!

Wouldn't it be better to define prefixes for where I expect the variable to be used? That way, if I end up in a debugger somewhere, I can tell where the variables were first defined.

And, what if I am moving variables into fields and fields into variables... Its a lot more convienant to call the variable the same as the field.
--Todd Sherman
-Wake Up! Smell the Coffee!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform