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.
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...
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?
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
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.
Comments
-type of parameters
-no. of parameters
-...
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
all parameters are Text100
:P
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...
I haven't try to calling the function. I will try it later.
Thanks.
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.
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.