Pieter,
this makes no differnce, PARAMETERS() returns the numbers of parameters send to Proc2 - and this number is 5.
Naomi likes to have only that params sent to the second procedure that are received by the first one.
There are commonly 2 ways using the params and 4 others with differnt params structure (need to alter Proc2)
The first two are
- using a DO CASE .. ENDCASE to pass only the params that are received
- using a FOR .. to PCOUNT() and macrosubstitution (needs special named parameters like tvPara1,tvPara2 so you may count up)
the other four are
-use an additonal parameter on Proc2 that receives the number of parameters that are entered to Proc1
-all parameters will be filled into one array and this will be passed
-all parameters will be filled into one object and this will be passed
-design a class that will do all the job. The parameters will be properties that need to be loaded befor calling the Method. The method itself will not receive any parameter. Behaviour changes will be done by subclassing.
Best Way in OOP<g>Agnes
>try PARAMETERS() instead of PCOUNT()
>
>Pieter
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]