Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using this.value within a control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00345497
Message ID:
00345530
Views:
17
>>>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.
>>
>>I would not make a generalization like that. In one sense it is *more* generic, since it does not rely on a bound source, which you may not always have.
>
>Right... I should have been more specific.
>
>How about in code that validates the data entered in the control then.

I still tend to use This.Value, more often than not, I would say. Really, I try to avoid validations if at all possible by restricting entries with tools like Keypress, Format, IAC, InputMask, for example.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform