Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COMBO BOX Easy question.

Status
Not open for further replies.

BRADLEY21

Programmer
Sep 19, 2002
35
US
I created an array that populates the items for a C0ombo box. However I would like the user to have a selected item to be selected when the screen intializes.

I tried thisform.listitemid=3

Any ideas.

Thanks
 
You want to set the value of the combo box to the array element value that you want.

Try THISFORM.COMBO1.VALUE=3 in the form init

where combo1 is the name of the combo box element on the form
 
ejd

In the init of the combo put
Code:
this.DisplayValue = "1" && Or whatever element of the array you want.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top