Vlad,
Should use PCOUNT() rather than PARAMETERS() as PCOUNT is for the curretn routine while PARAMETERS is for the last called routine which may not be the one you are in.
>Hi!
>
>put "lparameters param1,.... Paran32" - up to 32 parameters - at start of the procedure. Then use parameters() function to determine what is passed.
>
>>Hi all,
>>
>>How can I write a function (as the min or max functions) with undefined number of parameters?
>>
>>Thanks for any help