Wednesday, May 15, 2019

AX 2012 | compilation warning | SysDictClass::is method is obsolete

I got this warning from AX 2012 R3 CU13.











The SysDictClass::is method is obsolete. Use the IS operator instead.


Solution
I found a helpful tip from http://dynamics-ax-chronicles.blogspot.com/2011/07/form-control-type-at-run-time.html .

So after I change the code manually as follows, the warning is resolved.

     //if (SysDictClass::is(element.args().caller(), classnum(FormRun)))  
     if (element.args().caller() is FormRun)  

Until the next post!


No comments:

Post a Comment