|
建立完驱动后 在执行第二次时执行不下去了 出现了错误 请各位帮忙看看是哪里错了 (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); |
|