How To Set the Default Choice in a List Box or Combo BoxLast reviewed: October 17, 1996Article ID: Q140321 |
The information in this article applies to:
SUMMARYWhen including a combo box or list box on a form, developers often want to have default selection as something other than the first item in the list. To do this, set the Value property to a value contained in the list.
MORE INFORMATIONBy setting the Value property of a combo box or list box to a value contained in the list, you ensure that the item becomes selected (highlighted) as the default selection. All items contained in a combo box or list box are stored as a text variables, as such any reference to a field or variable for setting the value property must be converted to a character value. If the list contains multiple columns the Value property must contain a value in the bound column.
Step-by-Step Example
|
Additional reference words: 5.00 3.00 VFoxWin ColumnWidths ListBox ComboBox
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |