|
Datatable.ImportSheet"D:\QTP\test.xls","ceshi","Global"
DataTable.AddSheet("Global")
Dim i, rowcount
rowcount=DataTable.GetRowCount
msgbox rowcount
For i=0 to rowcount-1
DataTable.SetCurrentRow(i+1)
msgbox DataTable.GetSheet("Global").GetParameter("Name").Value
DataTable.SetNextRow
Next
运行这段代码的时候,当运行到DataTable.SetCurrentRow(i+1),datatable里面的数据消失,msgbox DataTable.GetSheet("Global").GetParameter("Name").Value运行这行代码时,出现这个错误The Sheet.GetParameter operation failed. The <Name> column does not exist.请教各位,这是什么原因啊,我刚刚接触QTP,在线等 |
|