Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using this.value within a control
Message
From
14/03/2000 15:31:19
 
 
To
14/03/2000 14:57:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00345497
Message ID:
00345514
Views:
13
>Would you guys agree that it generally is a bad programming practice to use this.value within a control because it makes the code considerably harder to maintain. Using the actual variable or field to which the control is bound is much better.
>
>Right???

The statement is too broad. There are right and wrong places for both. For example, in the InteractiveChange event of a textbox, referencing the value of the underlying field instead of the value of the control gives 2 different values, because a control's value is not written to the controlsource until control.lostfocus.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform