检查所有表Relations是否为unknown

static void CheckAllTable(Args _args)

{

    Dictionary          dictionary = new Dictionary();

    DictTable           dictTable;  

    int                 i,m,n;

    ;   

    for (i=1; i<=dictionary.tableCnt(); i++)

    {

         dictTable = new DictTable(dictionary.tableCnt2Id(i));

 

         for (m=1; m<=dictTable.relationCnt(); m++)

         {

            if (dictTable.relation(m) == "")

            {

                print dictTable.name();

            }

         }

         for (n=1; n<=dictTable.deleteActionCnt(); n++)

         {

            if (dictTable.deleteActionTableId(n) == 0)

            {

                print dictTable.name();

                //if(i > 10 )

                //pause;

            }

         } 

    }

   

    //dictTable = new dictTable(tablenum("NJ_CustomInvTable"));

    //print dictTable.deleteActionTableId(2);

    //print dictTable.relation(0);

    //print dictTable.name();

    pause;

}

posted @ 2011-10-10 11:49  perock  阅读(160)  评论(0编辑  收藏  举报