Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When to use parenthases after commands?
Message
From
16/08/2006 07:53:21
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01145740
Message ID:
01145933
Views:
13
>>I see your point. But as you wrote in the first place:
>>
>>Use white space liberally. It will improve readability :-))
>>
>>STORE 0 TO lnMyVar1,;
>>           lnMyVar2,;
>>           etc.
>>
>>I dodn't find this harder to read than:
>>
>>lnMyVar1 = 0
>>lnMyVar2 = 0
>>etc.
>>
>
>It's a matter of personal preference. For me the later is more readable.



Although I used to use the first one (STORE) for assigning many variables for years, for a long while I have switched to the latter as I find it more readable, and more importantly it makes it easier on you if you code in different languages (such as VFP, C#, VB.NET, JavaScript, etc.), keeping a closer mental model.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform