cbotadra
10th June 2008, 15:06
Hi all,

I have a function with varying number of inputs.

eg:- say tdslsdll0001.dummy.function(domain tcbool i.dummy,...)

Now I call this function as:

tdslsdll0001.dummy.functionr(tcyesno.no,dummy.array)

Here dummy.array is a string array which is dynamically defined.

My question is how can I retrieve the value of dummy.array in the original function tdslsdll0001.dummy.function() ??

NPRao
10th June 2008, 20:59
You have to use - get.string.arg() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_varying_arguments_get_many_arg)

Also refer to the link - Functions with variable number of arguments: overview (http://www.baanboard.com/programmers_manual_baanerp_help_functions_varying_arguments_overview)

Alternatively, instead of using "..." you can also use an empty subscript array for a constant string argument. Refer to - Function arguments (http://www.baanboard.com/programmers_manual_baanerp_help_3gl_features_function_arguments)