I have the following test code:
Foo(TableID : Integer)
MESSAGE('Passed is %1, Customer is %2',TableID,DATABASE::Customer);
CASE TableID OF
DATABASE::Location: SomeFunction();
DATABASE::Customer: SomeOtherFunction();
END;
If I call Foo(DATABASE::Customer), a message prints 'Passed is 18, Customer is 18'. However, the debugger skips past the CASE statement instead of entering SomeOtherFunction(). What am I doing wrong?
I have also tried the following:
-Changing the definition of the function to Foo(TableID : Option)
-Casting TableID to a RecordRef and using the RecordRef in the CASE statement
-Changing the code to read CASE TRUE OF TableID = DATABASE::Customer
Nothing seems to be working
Comments
Systems Analyst
NAV 2009 R2 (6.00.34463)
Systems Analyst
NAV 2009 R2 (6.00.34463)