Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LPARAMETERS problems..
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00168829
Message ID:
00168832
Views:
22
PCOUNT() will return the number of parameters passed.

>Hello,
>
>We are using VisualFoxPro 6.0 at the moment. We want to give arguments to a form. At the moment we use LPARAMETERS test1, test2, test3, test4 in out Init() event of the form.
>
>However sometimes we only give 3 or even less (or no) aruguments. At default the values then turn into .F. which didn't get an argument. However we also use .T. or .F. values as arguments. In the Init() event we want to see how many arguments are given and then react to them as we see fit. So for instance if we have 2 arguments we do a certain routine. However when we get 4 arguments we do another routine.
>
>How can we solve this? We tried the EMPTY() and the ISNULL() routines. But that doesn't work also. At the moment we are thinking about adding another arguments (the first one) where we define how many arguments are coming next. Is this a good way to go?
>
>Thanks for your time!
Previous
Reply
Map
View

Click here to load this message in the networking platform