This generally happens when you perform GET on a table, which has a combined primary key, with incorrect key order. Turn the debugger on and find out where it happens.
Quick scenario:
There is a table with primary keys Code and Integer Type.
If you perform a GET(10,’US’) instead GET(‘US’,10), this is the error message you would receive.
So, trust the debugger and change the field order in GET.
Another possibility is that you have named some function or variable as some field or another variable - it means check the naming in the line, where the error is called.
"t_testcase" points to a problem with a CASE statement. The VOID generally indicates that you are attempting to use the result of a function (probably a user defined function) that does not return a result.
Comments
it would be helpful
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Quick scenario:
There is a table with primary keys Code and Integer Type.
If you perform a GET(10,’US’) instead GET(‘US’,10), this is the error message you would receive.
So, trust the debugger and change the field order in GET.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
the problem may happen in CASE OF when you don't use BEGIN END statements.
CASE Index OF
1:
x := x + 1
2:
x := x + 2
3:
x := x + 1;
a := a +1;
4:
a := a +1
on the third case, you recieve t_testcase void error. check begin and end statements.
************
Mr. Nice Guy
************