Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters to a procedure in .PRG
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01053275
Message ID:
01053281
Views:
11
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform