When trying to execute the following code:
CASE SalesHeader."Document Type" OF
SalesHeader."Document Type"::Order,SalesHeader."Document Type"::Quote:
BEGIN
I get the followin error:
"Type conversion is not possible because 1 of the operators contains an invalid type. Option t_testcas Boolean"
Anyone knows what´s wrong in this expression.
0
Comments
CASE SalesHeader."Document Type" OF
SalesHeader."Document Type"::Order : x statement;
SalesHeader."Document Type"::Quote : x other statement;
END;
There's nothing wrong so far. It must be something to do with your next section of code as Navision will quite happily allow you to write different options values before the Colon so long as they are seperated by a comma.
What are your next few lines of code ????
This is the complete code statement.
The problem is in the CASE statement, if I change it to an IF statement works good.
It also seems very strange to me.
Thanks for your help.
Paulo
bit too keen with the "Begin" statements
Try this:
Hint:
Try indenting your second begin statement another level. This will help you to track your begin-end statements.
Dean
Paulo
... ?
:idea:
that is another possible option, but I guessed that Paulo is not an experienced developer and I thought the other way might be easier ????
give me some more time and I hope to be helping instead of asking for help.
Best Regards
Paulo
good luck :-) navision is easy to learn but hard to maintain :-)