|
回复 2# lantianwei
我的代码如下,也是报这个错,这个代码可是用data driver wizard 自动生成的,怎么还出错啊?
# Shell_TrayWnd
set_window ("Shell_TrayWnd", 1);
toolbar_button_press ("ToolbarWindow32_1", "Login"); # Button Number 2;
# Login
table = "d:\\default.xls";
rc = ddt_open(table, DDT_MODE_READ);
if (rc!= E_OK && rc != E_FILE_OPEN)
pause("Cannot open table.");
ddt_get_row_count(table,table_RowCount);
for(table_Row = 1; table_Row <= table_RowCount; table_Row ++)
{
ddt_set_row(table,table_Row);
set_window ("Login", 2);
edit_set ("Agent Name:", ddt_val(table,"Agent_Name"));
set_window ("Login", 4);
password_edit_set("Password:", ddt_val(table,"Password"));
}
ddt_close(table); |
|