Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When to use parenthases after commands?
Message
From
15/08/2006 17:47:40
 
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:
01145806
Views:
21
I can see that, but there is also an old rule, "One command per line". You can argue that STORE is one command, but I can also argue that assigning a value to more than one variable at a time is multiple commands. In this case, it's a matter of preference.


>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.
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform