Maximum Parameter

JAYESHJAYESH Member Posts: 290
Hi Experts,

I want to know how many maximum Parameter we used with function.

In my program its give me error

" Reduce experessions to make it complex"

Can any one tell me what to do ??

Thank you
JAYESH PATEL

Comments

  • kinekine Member Posts: 12,562
    If I remember correctly it is 20.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • JAYESHJAYESH Member Posts: 290
    Hi Thankx for the Reply

    I have 17 parameter.
    Then only its give me error message

    " Reduce experission so it is too complex "

    What is this mean..??

    Thank you
    JAYESH PATEL
  • kinekine Member Posts: 12,562
    Which NAV version?

    I tested on NAV 4.00SP3 and the limit was 19 parameters of type Integer and I tested it with type Text 1000 too.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • krikikriki Member, Moderator Posts: 9,110
    The no. of parameters probably depends on the complexity of the parameters and maybe also on the fact if they are "var"=true or not.

    The only thing you can do is to reduce the number of parameters.
    You might put some parameters into a record and pass the record to your function.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.