比较两行数据

来源:互联网 发布:java导出excel工具类 编辑:程序博客网 时间:2024/04/30 11:04

 

custtable c1,c2;
dicttable d = new dicttable(tablenum(custtable));
dictfield f;
int i;
boolean areTheSame = true;
;
 
c1 = custtable::find('4001');
c2 = custtable::find('4001');
 
for(i=1;i<=d.fieldCnt();i++)
{
       f = new dictfield(tablenum(custtable),d.fieldCnt2Id(i));
       if (f.isSystem()==false)
       {
              if (c1.(d.fieldCnt2Id(i))!=c2.(d.fieldCnt2Id(i)))
              {
                     areTheSame = false;
                     break;
              }
       }
}