在WR建立数据驱动时遇到问题请大家帮助!!!!
建立完驱动后 在执行第二次时执行不下去了出现了错误 请各位帮忙看看是哪里错了 (GUI已经改过了 DATA TABLE 也已经添完了 添的是 1) 谢谢!!!!!!!!!!下面是代码:
table = "lesson8.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);
# Flight Reservation
set_window ("Flight Reservation", 4);
menu_select_item ("File;Open Order...");
# Open Order
set_window ("Open Order", 1);
button_set ("Order No.", ON);
edit_set ("Edit", ddt_val(table,"Order_Num"));
button_press ("OK");
# Flight Reservation
set_window ("Flight Reservation", 2);
menu_select_item ("File;Fax Order...");
# Fax Order No. 3
set_window ("Fax Order No. 3", 1);
edit_get_text("# Tickets:",tickets);
edit_get_text("Ticket Price:",price);
edit_get_text("Total:",total);
# check that the total ticket price is calculated correctly.
if(tickets*price == total)
tl_step("total",0,"correct."tickets" tickets at$"price" cost $"total".");
else
tl_step("total",1,"Error."tickets" tickets at$"price" does not equal $"total".");
button_press ("Cancel");
}
ddt_close(table); 出了什么错阿 运行不下去了.... 你把代码粘上去就知道了 谁帮下忙啊 怎么运行不下去阿,有什么提示阿
没有你的驱动数据,即使有错也不一定一样啊 自己解决了 谢谢大家!
是 GUI里面的东西改错了 。。。。。。。。。。。。。。
页:
[1]