Reputation: 15
I would like to use AxaptaContainerWrapper
object in .net c#. I don't understand documentation on MSDN web site (http://msdn.microsoft.com/en-us/library/cc519742%28v=ax.50%29.aspx).
AxaptaContainerWrapper axCon;
string ret2 = "axCon";
axCon.Insert(1, ret2);
In VS 2008 I get error Use of unassigned local variable axCon
Why?
Upvotes: 0
Views: 274
Reputation: 15
I wrote code below and I haven't any errors. I have to make all report to test it
AxaptaWrapper ax = SessionManager.GetSession();
AxaptaObjectWrapper axClass;
AxaptaContainerWrapper axCon = ax.CreateAxaptaContainer();
Upvotes: 0
Reputation: 2112
You should use axaptaWrapper.CreateAxaptaObject() method: msdn
AxaptaWrapper aw= SessionManager.GetSession();
AxaptaObjectWrapper aow= ax.CreateAxaptaObject("??");
Upvotes: 1