|
本个刚学用作练习,录制了一段脚本,如下:
db_connect("xfb","dns=xfba",30);
db_execute_query("xfb","SELECT UF TÁ T
yð , UF TÁ |{ W‹ , ™_ Sð T
yð , SU N÷ , bS b˜ kÔ s‡ , ep ‘Ï , ‘Ñ ˜ FROM xfb",record_number);
if(xfb.record_number==93)
tl_step("number",0,"this is current");
else
tl_step("number",1,"this is uncurrent");
x=db_get_field_value("xfb","#record_number-2","#7");
if(580.00==x)
tl_step("x",0,"this is current");
else
tl_step("x",1,"unthis is current");
y=db_get_field_value("xfb","#record_number-1","#7");
if(680.00==y)
tl_step("y",0,"this is current");
else
tl_step("y",1,"this is uncurrent");
z=db_get_field_value("xfb","#record_number","#7");
if(70.00==z)
tl_step("z",0,"this is current");
else
tl_step("z",1,"this is uncurrent");
set_window("~Ó ^_ ", 1);
i=edit_get_text("ÿ_ mˆ 9 ‘Ñ ˜ ",xfje);
if(1330==xfje)
tl_step("xfje",0,"this is current");
else
tl_step("xfje",1,"this is uncurrent");
#edit_get_text("ÿ_ bS b˜ kÔ s‡ ",dzbl);
#edit_get_text("ÿ_ g
R¡ 9 s‡ ",fwfl);
#edit_get_text("ÿ_ ^” NØ ‘Ñ ˜ ",yfje);
#if (xfje*dzbl+xfje*dzbl*fwfl==yfje)
#tl_step("yfje",0,"this is correct");
#else
#tl_step("yfje",1,"this is uncorrect");
#obj_get_text("ÿ_ mˆ 9 ‘Ñ ˜ ", text1); # 1330.00
#obj_get_text("ÿ_ bS b˜ ‘Ñ ˜ ", text2); # 266.00
#obj_get_text("ÿ_ g
R¡ 9 ", text3); # 53.20
#obj_get_text("ÿ_ ^” NØ ‘Ñ ˜ ", text); # 1117
#obj_get_text("ÿ_ ^” NØ ‘Ñ ˜ ", text); # 1117.20
#if (text1-text2+text3==text)
#tl_step("text",0,"this is current");
#else
#tl_step("text",1,"this is uncurrent");
#obj_get_text("ÿ_ bS b˜ kÔ s‡ ", text); # 0.80
if(x+y+z==i)
tl_step("i",0,"this is current");
else
tl_step("i",1,"this is uncurrent");
为什么变量 x,y,z是status:fail而x+y+z=i却是正确的?请各位高手解答,各位赐
教非常感谢!(sorry,中段乱码是一个查询的sql语句,) |
|