What is the maximum parameters are allowed for a function?
bestianhow
Member Posts: 120
Hi all experts,
Do you know what is the maximum parameters are allowed for a function (NAV2009 Classic)?
I have tried to add up to 50 parameters, it is still allowed me to save & compile.
Thank you.
Do you know what is the maximum parameters are allowed for a function (NAV2009 Classic)?
I have tried to add up to 50 parameters, it is still allowed me to save & compile.
Thank you.
0
Comments
-
It depends on a lot of parameters:
-type of parameters
-no. of parameters
-...Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
I'm not sure. Once there was a limitation on 20 parameters, but I don't know if this is still valid."Money is likewise the greatest chance and the greatest scourge of mankind."0
-
I have tried 50 parameters.
all parameters are Text100
:P0 -
What I understand this also depends on the depth of the calling stack...
So directly calling a function with 50 parameters is not a problem, but when function1 calls function2 calls function3 calls TheSame50Pars will not be possible...0 -
Maybe i just manage to save & compile.
I haven't try to calling the function. I will try it later.
Thanks.0 -
Other issues to consider are:
Is the function manageable with that many parameters?
Fifty would generally be considered way, way too many.
Is Another data structure better ?
(a temp table?) (Array?)
Is the function maintainable and understandable?
Just some thoughts.
Steve0 -
Hi Steve,
Thanks for your reply.
ASP .net side pass data thru NAV2009 SP1's web service.
I'm thinking use 1 parameter as 1 field.
Anyway, some friends recommended me to use XML to handle this case.
But i don't know how to coding for XML
Thanks.0 -
best to send a temp table as a record variable as a parameter function. or if all the parameters are of the same datatype, then an array variable as a parameter.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
