Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters to a procedure in .PRG
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01053275
Message ID:
01053281
Vues:
19
>I have a procedure in a .PRG file. That is, there is no FUNCTION or PROCEDURE declaration in this .PRG file. The procedure receives two parameters. I tried, for a test, to pass just a second parameter:
>
>
>do MyProcInPrg with , lSecondParam
>
>
>Inside the MyProcInPrg the PCOUNT() returns 2. Is this a "kosher" way to skip the first parameter and just pass the second one?

The first parameter is passed in anyway as logical false (.F.) but yes, it's good way to pass only second parameter, assuming that the first one never can be false(.F.).
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform