Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Single line vs multiple lines assignment
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Single line vs multiple lines assignment
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01499222
Message ID:
01499222
Views:
161
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
Next
Reply
Map
View

Click here to load this message in the networking platform