I need to get in my report from CrossReference Table some info with SETRANGE like this:
CLEAR(CrossRef1);
CrossRef1.SETRANGE("Description",CrossRef1."Description"::Box1);
CrossRef1.SETRANGE("Item No.","Item"."No.");
IF CrossRef1.FIND('-') THEN;
I get error message "The text 'BOX1' is too long. Text can have maximum lenght 3 characters."
0
Comments
CrossRef1.SETRANGE(Description,'Box1');
CLEAR(CrossRef1);
CrossRef1.SETRANGE(Description,'Box1');
CrossRef1.SETRANGE("Item No.","Item"."No.");
IF CrossRef1.FIND('-') THEN;
Chn
Just a happy frood who knows where his towel is
This is Item Cross Reference Table - 5717
Chn
The message says CrossRef1.Description is a text field and length is 3 character. But when I read your code description appears as a option field. There is an inconsistency between the error message and the code. Have you been able to compile this object and receive this message after that?
Pargesoft
Maybe "Box1" is written differently in the CrossRef table.
Box1 and BOX1
Thanks for help!
Just a happy frood who knows where his towel is