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