引用 2 楼 newease 的回复:
DWObject 用于在代码中直接操作数据窗口对象中的对象 包括设置对象的属性
得到数据窗口中的数据等 数据窗口对象中的对象包括 列对象 文本
对象 图像对象 按钮对象 Datawindow对象等
举例
If the control is a column, you can get the column name with this statement:
ls_name = dwo.Name
If the control is a column, you can get data from the whole column or from specific rows. You must specify the …
[Quote=引用 2 楼 newease 的回复:]
DWObject 用于在代码中直接操作数据窗口对象中的对象 包括设置对象的属性
得到数据窗口中的数据等 数据窗口对象中的对象包括 列对象 文本
对象 图像对象 按钮对象 Datawindow对象等
举例
If the control is a column, you can get the column name with this statement:
ls_name = dwo.Name
If the control is a column, you can get data from the whole column or from specific rows. You must specify the …
[/Quote]
你能不能把中文的解釋意思翻譯下?謝謝,還有你的手冊的名稱是什么,中文的還是英文的?
DWObject 用于在代码中直接操作数据窗口对象中的对象 包括设置对象的属性
得到数据窗口中的数据等 数据窗口对象中的对象包括 列对象 文本
对象 图像对象 按钮对象 Datawindow对象等
举例
If the control is a column, you can get the column name with this statement:
ls_name = dwo.Name
If the control is a column, you can get data from the whole column or from specific rows. You must specify the buffer from which you want to retrieve data. In this statement, row is another argument passed to the event so the value in ls_data is the data in the row and column the user clicked. In this example, if the column value is not a string, an error occurs (check ColType property to get the column data type):
ls_data = dwo.Primary[row]
This statement assigns a new value to the row and column the user clicked. The assignment does not trigger the ItemChanged event and bypasses validation. If the column is not numeric, an error occurs:
dwo.Primary[row] = 41
This statement gets all the data in the column the user clicked. The data is stored as an array in the Any variable. An Any variable can hold all data types, so no error occurs:
Any la_data
la_data = dwo
This statement gets data in the column from selected rows. The data is stored as an array in the Any variable: