如何在FoxPro 9.0中获取绑定了两个字段(名称(0)和ID(1))的组合框的选定值和选定索引?
如何在FoxPro 9.0中获取绑定了两个字段(名称(0)和ID(1))的组合框的选定值和选定索引?
thisform.yourCombobox.Value
这个语句是与下拉框相关的。它的“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)
如果“Value”将是“ColumnM”的值,则可以是数字、字符或列所代表的任何内容。
If the "BoundColumn" property was 1,
the "Value" would have the value from "ColumnX" from the table