Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opinions sought on declaring variables
Message
From
15/12/1998 09:35:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Opinions sought on declaring variables
Miscellaneous
Thread ID:
00167644
Message ID:
00167644
Views:
65
Ok all - poll of the day:

Do you declare (LOCAL, etc.) all your variables "up front" in each method/prg or do you declare them only when they're about to be used first time within the method/prg as in the case of conditional branching where the variable may not be used at all except under a particular case?

I've seen use of and arguments for both. Just like to see what everyone is doing. Also how do all of you feel about the practice of always giving a local variable a default value up front or wherever it is declared?

TIA!
Ken B. Matson
GCom2 Solutions
Next
Reply
Map
View

Click here to load this message in the networking platform