Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
For the experts: control value vs field value.
Message
 
To
05/06/1998 13:21:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00105233
Message ID:
00105279
Views:
26
>Which one is the better way to go in operating in code in a form?:
>with the 'thisform.textbox1.value' or with the 'alias.myfield'?
>asuming the textbox1 is bounded to the alias.myfield.
>Carlos.

It depends what you are trying to do. For example, if you are writing field validation on some sort business object, you should only refer to your data, never to your controls.

In general, even when I am writing code in databound controls I tend to refer to the controlsource the control is bound to. It's easier to refer to mytable.myfield than it is to this.parent.parent.txtControl.Value.

Michael G. Emmons
memmons@nc.rr.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform