|
DataStr="D:\Book1.xls"
DataTable.AddSheet ("testdata")
DataTable.ImportSheet DataStr, "sheet1", DataTable("A", dtGlobalSheet)
For i=1 to DataTable.GetSheet ("testdata").GetRowCount
DataTable.SetCurrentRow i
Dialog("Login").WinEdit("Agent Name:").Set DataTable.value("AgentName","testdata")
Dialog("Login").WinEdit("Password:").Set DataTable.value("PassWord","testdata")
Dialog("Login").WinButton("OK").Click
Next
这段代码执行到输入AgentName时报错AgentName不存在 我在Global中加入AgentName 还是报错 请问是怎么回事呢 |
|