Skip to main content

Do You Know - Number of Parameter In Message & Error Functions?

Hi all,

Just a small post to share something which I found today.

Do You know how many Parameter are supported by Message and Error Function in Navision?

It's not unlimited, I thought so.
Yes, there is a limitation for no. of parameters and Its 10.

Sample -

If I Tried to pass 11 parameters, it end up with an Error message.


Try to compile this line -

MESSAGE('%1 %2 %3 %4 %5 %6  %7 %8 %9 %10 %11',1,2,3,4,5,6,7,8,9,10,11);

OR This line

ERROR('%1 %2 %3 %4 %5 %6  %7 %8 %9 %10 %11',1,2,3,4,5,6,7,8,9,10,11);

You will find the same error message.

Thanks & Regards,
Saurav Dhyani
www.sauravdhyani.com

Comments