Foxpro组合框获得选择值?

时间:2014-11-19 23:15:58

标签: combobox visual-foxpro selectedvalue

如何获取所选值(两个字段绑定:name(0)和id(1)),foxpro 9.0中选择的组合框索引?

1 个答案:

答案 0 :(得分:2)

thisform.yourCombobox.Value

"价值"属性将基于" BoundColumn"是组合框。

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)
然后是"价值"将是" ColumnM"作为数字,字符或列代表的任何内容。

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