Hello Everyone,
I need your help.
We have a COM object registered for our Navision system.
It has a method that accepts two parameters: The first parameter is a string,
the 2nd parameter is an integer.
However, when I use the following code snippet, it pops up a message box as shown below at compile time
IF ISCLEAR(MyObj) THEN CREATE(MyObj);
_text := "Item Tracking Entry"."Serial No.";
Index := 1;
_returnString := MyObj.DoSth(_text, Index);
Then I changed the second parameter to an integer
IF ISCLEAR(MyObj) THEN CREATE(MyObj);
_text := "Item Tracking Entry"."Serial No.";
_returnString := MyObj.DoSth(_text, 1);
It still gives the same error message.
Could someone give me a hint on this?
Thank you.
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
The cursor is placed at the second parameter.
Apparently it needs a reference to a variable.