Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optional number of parameters and protected procedure
Message
From
05/01/2007 06:50:06
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
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:
01182713
Views:
22
Mathias,
Proc1 (1,2,3)
PROCEDURE Proc1
LPARA Para1,Para2,Para3,Para4,Para5

?PCOUNT()
Proc2(Para1,Para2,Para3,Para4,Para5)
ENDPROC

PROCEDURE Proc2
LPARA Para1,Para2,Para3,Para4,Para5

?PCOUNT() &&all times 5 if called by Proc1
ENDPROC
Agnes
>Did anyone mention PCount()? That should do it.
>
>
>>Hi everybody,
>>
>>I have a method in the class with optional number of parameters which calls a protected procedure of the same class. I'm passing parameters as is from one procedure to another. I guess the only way to know from this protected procedure how many parameters did I pass originally is to actually pass the number of parameters as a parameter.
>>
>>Do you see any other way here?
>>
>>Thanks in advance.
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