Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command line switch
Message
From
05/01/2022 05:06:45
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
05/01/2022 04:54:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01683207
Message ID:
01683210
Views:
65
>>Hi,
>>
>>can tell me somebody what the VFP command line switch -i is?
>>
>>If I call my exe like
>>
>>Myexe -x  -i
>>
>>the -i is eaten by vfp like the known internals like -R or -A
>
>Are you sure it's being eaten - that it isn't being treated as a parameter? If you put LPARAMETERS lcParam1, lcParam2, ... at the start of your MAIN, are any of them "-i"?
LPARAMETERS ;
 tcPara01,tcPara02,tcPara03,tcPara04,tcPara05,tcPara06,tcPara07,tcPara08,tcPara09,tcPara10,;
 tcPara11,tcPara12,tcPara13,tcPara14,tcPara15,tcPara16,tcPara17,tcPara18,tcPara19,tcPara20,;
 tcPara21,tcPara22,tcPara23,tcPara24,tcPara25,tcPara26
And I parse the parameters. EXE is set up for command line use.

Any parameter starting with -i will be removed. IOW
A call
Myexe -x  -ipu mu
to
LPARAMETERS ;
 tcPara01,tcPara02,tcPara03
?tcPara01
?tcPara02
?tcPara03
wait window timeout 60000
would show
-x
mu
.F.

@Tore
I know it's not in the help nor google - that's why I'm asking. :)

Aunt Edit say:
And I'm real unhappy with. First I used -R, for best naming, and that failed. I remembered that there was something with the built in switches. I looked up the help. Guess ...
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform