Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does PARAMATERS() count empty parameters
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00161573
Message ID:
00161580
Views:
19
>I pass two parameters to proc1. One has a value and the other is empty. In proc1 there is a "IF PARAMETERS() < 2" which produces an error message. On my machine it counts two parameters and no error message is produced. On another machine using the same executable, the error message is produced.
>
>Is there some oddity about PARAMETERS()?

There is... :)
Try to use PCOUNT() instead of "IF PARAMETERS() < 2"

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform