请教插入FUNCTION的问题
运行下面的脚本时,执行到if(ticket * price == total)时出错:
# Flight Reservation
win_activate ("Flight Reservation");
set_window ("Flight Reservation", 2);
menu_select_item ("File;Open Order...");
# Open Order
set_window ("Open Order", 1);
button_set ("Order No.", ON);
edit_set ("Edit", "1");
button_press ("OK");
# Flight Reservation
set_window ("Flight Reservation", 2);
menu_select_item ("File;Fax Order...");
# Fax Order No. 1
set_window("Fax Order No. 1", 12);
win_activate ("Fax Order No. 1");
set_window ("Fax Order No. 1", 3);
edit_get_text("# Tickets:",ticket);
edit_get_text("Ticket Price:",price);
edit_get_text("Total:",total);
if(ticket * price == total)
tl_step("total",0,"total is correct);
else
tl_step("total",1,"total is incorrect);
button_press ("Cancel");
# Flight Reservation
set_window ("Flight Reservation", 3);
obj_mouse_click ("Button", 20, 16, LEFT);
[ 本帖最后由 xxmao163 于 2005-12-16 16:03 编辑 ] if和else下的语句的"不匹配
tl_step("total",0,"total is correct);
correct后面少了一个“
tl_step("total",0,"total is correct"); if和else下的语句的"不匹配
tl_step("total",0,"total is correct);
correct后面少了一个“
tl_step("total",0,"total is correct"); 哦,谢谢
页:
[1]