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

Creating a output file

Status
Not open for further replies.

armylogman

Technical User
Feb 16, 2005
34
US
I am trying to create a backup file with the name coming from a variable the variable is W92XXX when I do the backup file I would like it to be W91XXX.TXT.

Thanks
 
I assume the file is a .DBF

lnNumber=92
lcFileName="W"+alltrim(str(lnNumber-1))+"XXX.TXT"
use (DbfFName)
Copy to (lcFileName) type SDF


David W. Grewe Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top