|
table="D:\\TABLE操作\\test001.xls";
rc=ddt_open(table);
if (rc==E_OK)
pause("can open table");
else
pause("can't open table");
ddt_get_row_count(table,RowCount);
for(Row=1;Row <= RowCount;Row ++)
{
line1=ddt_val_by_row(table,Row,"t1");
line2=ddt_val_by_row(table,Row,"t2");
line3=ddt_val_by_row(table,Row,"t3");
if(line1*line2==line3)
report_msg("line1="&line1",line2="&line2",line3="&line3",right.");
else
report_msg("line1="&line1",line2="&line2",line3="&line3",wrong.");
}
ddt_close(table);
----------------第一列line1*第二列line2的值是否等于第三列line3.不知能否懑足你的题意. |
|