Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable Naming
Message
From
08/01/2000 18:21:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Variable Naming
Miscellaneous
Thread ID:
00315006
Message ID:
00315006
Views:
72
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!
Next
Reply
Map
View

Click here to load this message in the networking platform