Foxpro combobox get selected value?

2.8k views Asked by At

How to get selected value (two fields binding: name (0) and id(1)), selected index of combobox in foxpro 9.0?

1

There are 1 answers

0
DRapp On BEST ANSWER

thisform.yourCombobox.Value

The "Value" propert will be based on whatever the "BoundColumn" is of the combobox.

So, if for example your RowSource is "alias.ColumnX,ColumnM"
and the RowSourceType is "6=Fields" from a table
and the BoundColumn is 2 (meaning the second column in the list)

then the "Value" will be that of the "ColumnM" as either numeric, character or whatever the column represents.

If the "BoundColumn" property was 1, 
the "Value" would have the value from "ColumnX" from the table