Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

the nodes compare

$
0
0

hello,

So as all of us gathered here, I have a problem.

Maybe you could help me with that)

I have a job, which needs to compare the node from the different levels an say how many code lines are different

All I was able to figure out is:

 

static void task(Args _args)

{

     TreeNode tn;

     treenode tnsys;

     treenode tnsyp;

     str name;

     boolean a;

     str ThePath="\Classes\Activities";

    ;

        tn = TreeNode::findNode(thepath);

 

        if (tn)

        {

           tnsys = tn.getNodeInLayer(UtilEntryLevel::sys);//the node from sys layer

           tnsyp = tn.getNodeInLayer(UtilEntryLevel::syp);// the node from syp layer

           // the code which will convert nodes in the lines of code (strings)which could be compared

           a = syscompare.strcompare(tnsys, tnsyp) //the compare function( not sure if the right one)

        }

 

 

}:

So if you have any ideas, you are welcome


Viewing all articles
Browse latest Browse all 9880