Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When to use parenthases after commands?
Message
From
16/08/2006 10:00:47
 
 
To
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:
01145988
Views:
16
Same here. I was a big fan of the first until I started working in Delphi simultaneously. Remembering to include the ; or leave it off is my biggest mistake (I tend to start typing and get going and then forget which language I'm working in). To make it simpler reading between the two, I now stick with myvar = myvalue as much as possible to match pascal's var_name := value;


>>>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.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform