Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optional number of parameters and protected procedure
Message
De
04/01/2007 14:51:52
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
04/01/2007 14:47:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01182425
Message ID:
01182477
Vues:
42
>>>>>>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.
>>>>>
>>>>>What about PARAMETERS()?
>>>>>Though I would always pass an object.
>>>>
>>>>I don't see how parameters can help me here. Anyway, this particular problem is solved, though may be not the best way.
>>>
>>>It returns number of parameters.
>>
>>Help says pcount may be preferable in "most programming situations" :)
>
>I would rather say pcount is preferable ALWAYS. The problem with parameter() is that it is reset if you call another function before you check it.

I know! :)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform