I have a type conversion problem. i got a report sent from my head office.... it is a label printing report... when i imported and tried to compile, am getting type conversion error.
Microsoft Business Solutions-Navision
Type conversion is not possible because 1 of the operators contains an invalid type.
Text := VOID
OK
-
In that there is a coding line which is given below
Addr[1][1] := PrintBarCode.ParseRequest(ICR."Cross-Reference No.");
when I try to compile it throws the error and the cursor blink at this code only.
ADDR[1][1]is defined as text[250].
Printbarcode ====> NAv Comm (Codeuint)
there the cross reference no. is passed and get converted into barcode number....
can any body tell what is need to be done.....
0
Comments
Just take a minute to think about the code you are looking at.
Addr[1][1]. What does that tell you? That you are expecting some sort of Matrix or 2-dimensional array.
You say Addr is only a Text[250] variable, or a 1-dimensional array (that's what text is, a 1-dimensional array of characters).
See the problem?
Next time try commenting parts of the code out. That will get you to a point where you can compile the report and that will tell you what's wrong.
My Blog - nav.education