ControlSource
This property lets you link (bind) a variable, field, or another property to a control's Value.
Usage |
oObject.ControlSource = cSource cSource = oObject.ControlSource |
For lists and combos, ControlSource can be either character or numeric. When the ControlSource is numeric, its interpretation is determined by the control's BoundTo property. With the default .F. for BoundTo, Value (and the ControlSource) contains the position (or ListIndex) of the chosen item. To have a numeric value from the list's data stored in Value and the ControlSource, you have to set BoundTo to .T. |
Example |
This.ControlSource = "Employee.Last_Name" |
See Also |