I 've a codeunit using ADO 2.7 library and work fine in Nav 5.
Same code give an error on Nav 2015.
IF ISCLEAR(vCmdOra) THEN
CREATE(vCmdOra);
StringConnCommand := FORMAT(vConn.ConnectionString+';password='+Password);
vCmdOra.ActiveConnection := StringaConnessioneCommand;
vCmdOra is a ADO.Command
StringConnCommand is a variant
When I try to execute this code on Nav 2015 show this error:
The expression Microsoft.Dynamics.Nav.Runtime.NavIndirect Value cannot be type-converted to a Microsoft.Dynamics.Nav.Runtime.NavAutomation value.
at this row: vCmdOra.ActiveConnection := StringaConnessioneCommand;
Any ideas?
0
Comments