Nav 2015 ADo problem

tulliotullio Member Posts: 39
edited 2015-09-24 in NAV Three Tier
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?

Comments

  • bbrownbbrown Member Posts: 3,268
    Use .NET InterOP with NAV 2015.
    There are no bugs - only undocumented features.
Sign In or Register to comment.