# 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", 0, "Error. "tickets" Tickets at $"price" does not equal $"total".");
button_press ("Cancel");
}
else{
win_close("Open Order");
}
}
ddt_close(table);
text.xls数据如下:
State
OFF
ON
仅供参考!