piao_604 发表于 2006-8-15 14:35:15

帮忙看看以下脚本

edit_get_text("# Tickets:",text);
edit_get_text("Ticket Price:",text);
edit_get_text("Total:",text);
       
if (Tickests* Ticket Price==Total)
       tl_step("Total",1,"correct "Tickets"tickets at $" Ticket Price" cost $"Total".");
else
      tl_step("Total",0,"error "Tickets" tickets at $"Ticket Price" does not equal $"Total".");

这个脚本在执行结果中没有取得变量得值,是不是哪里写错了,请赐教,谢谢!

快乐逍遥 发表于 2006-8-15 14:50:24

你取的值全都输出到 text了
查看tsl帮助
edit_get_text ( edit, out_string );
edit        The logical name of the edit object.
out_string        The output variable that stores the string found in the edit object.

xihong2004 发表于 2006-8-15 14:51:35

你应该写成:
edit_get_text("# Tickets:",a);
edit_get_text("Ticket Price:",b);
edit_get_text("Total:",c);
      
if (a*b==c)
...........

piao_604 发表于 2006-8-16 14:28:47

谢谢,终于解决了,呵呵!
页: [1]
查看完整版本: 帮忙看看以下脚本