|
set_window ("Flight Reservation", 5);
menu_select_item ("File;Open Order...");
table = "order1.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 ("Open Order", 2);
button_set ("Order No.", ON);
edit_set ("Edit", ddt_val(table,"order.no"));
button_press ("OK");
if(win_exists("Flight Reservations")==E_OK)
{
set_window ("Flight Reservations", 5);
button_press ("确定");
}
}
ddt_close(table);
这是针对flight中open order的脚本,在Debug Step模式下运行都正常的,但是在run的时候经常出现下面的错误
Window: "Open Order"
Object: "Edit"
Error: Object is currently disabled.
这是为什么啊? |
|