Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When to use parenthases after commands?
Message
De
16/08/2006 07:53:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01145740
Message ID:
01145933
Vues:
14
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform