Specifies whether the Value property of a combo box or list box is determined by the List or the ListIndex properties. Available at design time and run time.
[Form.]Control.BoundTo[ = lExpression] |
Return Value
- lExpression
-
The settings for the BoundTo property are:
Setting Description .T.
The Value property is determined by the List property.
.F.
(Default) The Value property is determined by data type of the variable or field specified in the ControlSource property.
If the variable or field specified in the ControlSource property setting is of character type, the Value property is determined by the List property.
If the variable or field specified in the ControlSource property setting is of numeric type, the Value property uses the index number from the ListIndex property.
This setting provides compatibility with Microsoft Visual FoxPro 3.0 and 2.x versions of FoxPro.
Remarks
Applies To: ComboBox Control | ListBox Control
In Visual FoxPro 3.0, if the ControlSource property for a combo box or list box is numeric, the ListIndex property value of the selected item is stored in the variable or field to which the control is bound. Set the BoundTo property to true (.T.) to store the value of the List property in the variable or field to which the control is bound.