KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to force the default value for the combo box
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: March 20, 2002
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

Version: 6.5.x and 6.7.x

Combo boxes are quite similar to Pop-up menus/Drop-down lists in that combo boxes display a selectable list of items when they are clicked. However, unlike Pop-up menus/Drop-down lists, combo boxes do not have a default value. When a combo box is loaded, there is no selected default value. If you want to define a default value for a combo box, you can assign it to its element 0 (Combo{0}, when the variable name is "Combo") when the form is being loaded.

For example:


If(Form event=On Load)

 Combo{0}:=Combo{1}

End if