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

File name based on screen variable

Status
Not open for further replies.
Jul 4, 2002
17
0
0
GB
I have created a csv but want to copy it and have the file name as a variable from a screen with the file extension csv.

Example

Variable on screen invno (entered by user eq 546701)
file created delivery.csv
want file name to be 546701.csv

Any help would be very much appreciated
 
if variable name = invno = 546701 then this should work:

RENAME delivery.csv TO (invno) + '.CSV'
 
Remember that with non-Visual versions of Foxpro, your filename is limited to the 8.3 character format. No spaces, no long filenames, etc.

As long as your user's remember that or, if you do filename validity checking before attempting to use it, you should be fine.

Good Luck,
JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top