Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference to a column in a ComboBox
Message
From
09/10/1999 08:13:07
 
 
To
09/10/1999 07:22:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00274572
Message ID:
00274575
Views:
27
I think sorted it out...

Set the combobox.style property to 2 for a dropdown list box
Set the combobox.RowSource Type to 5 for an Array
Set the combobox.RowSource to the array that contains the data
Set the combobox.BoundColumn to the column that has the data you want to be stored in the combobox.Value property when a selection is made

>I have a combo box with two columns. The data is stored in an array that is part of the combobox.
>
>
>WITH Thisform
>
>  SELECT DISTINCT RodSpec.Mill , RodSpec.MillId;
>    FROM WireMill!RodSpec ;
>    ORDER BY RodSpec.Mill;
>    INTO ARRAY .cboMill.cboData
>
>  =ASORT(.cboMill.cboData)
>  .cboMill.DISPLAYVALUE = .cboMill.LIST(1)
>ENDWITH
>
>
>
>When I select a value from the combo box I need to know the value in column 2. How do I reference it?
>
>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform