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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transport paramaters from dos

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Does anybody knows, how can I transport parameters from dos prompt, such a filename of a .dbf file (in clipper summer 87) ???

thanks
 
I think you are asking if a S87 Clipper program can accept arguements (parameters) at run time. Yes it can.
You'll find detailed info if you look up either the PROCEDURE statement or the FUNCTION statement.
Good luck.
 
Yes, it can, an example, you run your app:

c:\myprog\app file1, file2 <enter>

..... your code must begin with:

** app.prg
parameter file1, file2
.
.
.
* then ...

use &file1 new
use &file2 new && (if you use aliases is more legible)
.
.

by the way, Summer87 isn't Y2K compliant, you must consider it if you are planning to use dates.

good luck
 
You use this:

C:\Myprog Dat1 Dat2

---------------------
///MyProg.prg

Procedure Main(Par1, Par2)
? Par1, Par2
? Type(Par1) ? Type(Par2)
Return /// or Quit

///eof MyProg

----------------------
You Compile:

Clipper MyProg /n
Rtlink fi MyProg

It's easy

ramonzea@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top