DataWindow Value Acquisition

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.