Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can EXE pass a Parameter

Status
Not open for further replies.

fmoore0001

Programmer
Dec 3, 2002
192
US
Guys, I used to be really into Clipper, but year in the FoxPro world have numbed my memory of this wonderful program generator.

Can you pass a parameter with a clipper executable?, i.e.

ClipPrg.EXE "myParameter"

where the parameter is available to the Clipper app. I remember you can, but I cannot remember where the parameter is passed.

Oddly, I need to know this for a Clipper app we are doing that write (get this) XML pages.

Frank
 
Just make sure the first line of the programme after all the includes is:
Parameter cPassesPar
It's much the same as passing a parameter to a procedure, but then who writes procs nowadays, it's always functions.

For those who want to a similar thing at the other end, that is when you exit the programme, you can use
Errorlevel()
All you have to do then is brush up on your batch programming! Ian Boys
DTE Systems Ltd
 
can also pass the arguements to the function like this...

" function Start( para1, para2 )"

para1 and para2 will be local variables to the function "Start"

works the same way as VFP

good luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top