比较两行数据

 

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;
              }
       }
}
posted @ 2009-04-26 12:06  Fandy Xie  Views(179)  Comments(0Edit  收藏  举报