Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error in main
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00600045
Message ID:
00600048
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
You can specify more parameters (up to 27) for your program and than use PCOUNT() function to check.

>Hi
>
>I'm trying to control errors in my exe, but the error is with parameters, before on error command
>*-- MAIN
>parameters tPar1,tPar2, <b>tPar3, ..., tPar27</b>
>
>on error ...
IF PCOUNT() > 2
   * Too many parameters ...
   * do something
ENDIF
>calling the exe produce an error
>
>myexe.exe val1 val2 val3
>
>How can I handle multiple parameters, and this error?
>
>
>TIA
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform