Morten Lehrmann's Dynamics AX Blog

Morten Lehrmann's Dynamics AX Blog

About the Blog

The Blog gathers issues I have found useful during my work with Dynamics AX

Pass container in Args

TipsPosted by Morten Lehrmann 2009-04-07 16:33:49
To pass a container to an object in Args you need to encapsulate the container in an object, e.g.:

Container c = [1,2,3];
ContainerClass cc = new ContainerClass(c);
_args = new Args();
And in the receiving class: static void main(Args _args)
ContainerClass cc;
Container c;
cc = _args.parmObject();
c = cc.value();