|
table = "date.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", 13);
menu_select_item ("File;New Order");
edit_set ("Date of Flight:", ddt_val(table,"Date_of_Flight"));
report_msg("Date of Flight:" &ddt_val(table,"Date_of_Flight") );
define_popup_exception("close_msg","close_error_msg","Flight Reservations");
public function close_error_msg()
{
set_window("Flight Reservations");
report_msg("please try again!Date of Flight is unavailable" );
win_close("Flight Reservations");
}
exception_on("close_msg");
list_select_item ("Fly From:", "Denver"); # Item Number 0;
# Flight Reservation
set_window ("Flight Reservation", 7);
menu_select_item ("File;Exit");
}
ddt_close(table);
运行这段代码时,老提示有语法错误,我仔细检查过没有语法错误,不知什么原因?如果把粗体部分的脚本去掉,就没有语法错误了,请问是什么原因呢?帮忙分析下。 |
|