DataWindow Value Acquisition
Example 1:
read the value of the second field cell in the first rowDw_1.object. data[1,2] Example 2:
reads the second row of values in the Name fieldDW_1.OBJECT.NAME[2] Example 3:
Get Name field all data (columns)String Stu_name[]stu_name[]=dw_1.object.name.current Example 4:
get the current lineLong Rownumrownum=dw_1.getrow () Example 5:
gets the current number of columnsLong Columnnumcolumnnum=dw_1.getcolumn () Example 6:
get total number of rowsDw_1.rowcount () Example 7:
get total number of columnsLi_colnum = Integer (Dw_1.object.datawindow.column.count)orLl_column = Long (Dw_1.describe ("DataWindow.Column.Count"))
Example 8:
get all column headingsLl_colnum = Long (dw_1.object.datawindow.column.count) for i = 1 to ll_colnum ls_colname = Dw_1.describe (' # ' + string (i) + ". Name") + "_t" MessageBox ("", Ls_colname) Next Example 9:
Gets the column header, column name, database field name that you clickedString ls_dwostring ls_titlestring ls_columnstring ls_dbname ls_dwo = Dwo. Name//No need to modify Ls_title = This.describe (Ls_dwo + ' _t.text ')//title Ls_column = This.describe (Ls_dwo + '). Name ')//Data window column name Ls_dbname = this.describe (Ls_dwo + '. dbname ')//database field name