根据帮助里说的应该是不可以的,你用过吗?那个取的是代码表的value,是datawindow的属性,明天我试下
Description
The values in the code table for the column.
Controls
Column objects
Syntax
Dot notation:
dw_control.Object.columnname.Values
Describe and Modify argument:
"columnname.Values { = ' string ' }"
Parameter Description
columnname The column for which you want to specify the contents of the code table
string (exp) A string containing the code table values for the column. In the string, separate the display values and the actual values with a tab character, and separate multiple pairs of values with a slash using this format:"displayval~tactualval/displayval~tactualval/ ..."For example:"red~t1/white~t2"String is quoted and can be a DataWindow painter expression
Usage
In the painter
Set the value using the Object property sheet, Edit tab, Display Value and Data Value options (available for edit style DropDownListBox and for Edit and EditMask when a code table is enabled).
When Style is Edit, check Use Code Table.
When Style is EditMask, check Spin Control and Code Table.