Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Single line vs multiple lines assignment
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Single line vs multiple lines assignment
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01499222
Message ID:
01499222
Vues:
162
Hi everybody,

I'd like to ask you what would be your code preference:

thisform.text1.visible = .f.

thisform.text2.visible = .f.

thisform.text3.visible = .f.

etc. (say, 6-7 different assignments)

vs.

store .f. to thisform.text1.visible, ;
thisform.text2.visible etc.

-----------------
I personally prefer the second variation and to me it's more readable than first, so when I come across the first version of the code, I change it right out of the habit.

However, we're now having a discussion with my colleague as which version of code to use.
-----------------------------------------------------------------------------------------------------
I understand, that this boils down to personal preferences and also since only VFP allows such multiple variables assignment, it may be better to change.

-----------
So, let's just discuss preferences here - what is your preference and why.

Thanks.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform