Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optional number of parameters and protected procedure
Message
From
05/01/2007 07:50:18
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
05/01/2007 07:14:09
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01182425
Message ID:
01182739
Views:
27
This message has been marked as a message which has helped to the initial question of the thread.
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.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform