Posted: Wed Jun 01, 2005 12:46 pm Post subject: Combo Boxes
I need to figure out how I can get a combo box to insert its list # into a variable, I bet it is a very simple command but I can't seem to find anything on it... I have a project I'm working on that is due on thursday and it needs combo boxes, any help would be GREATLY appreciated.
Sponsor Sponsor
Matt_872000
Posted: Thu Jun 02, 2005 12:50 pm Post subject: (No subject)
Well, the due date has come and gone, and no reply, now it's just mroe of an interest thing, anyone know at all?
GlobeTrotter
Posted: Thu Jun 02, 2005 3:26 pm Post subject: (No subject)
Simply use the .ListIndex property.
Example:
VisualBASIC:
Dim iSelected AsInteger
iSelected = cboTest.ListIndex