Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem copying TXT output file????
Message
From
26/08/2001 18:36:41
 
 
To
26/08/2001 18:15:00
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00549291
Message ID:
00549293
Views:
15
Hi Peter,

Try this:

lcNewName = THIS.txtOutFname.value
COPY FILE (gOutFname) TO (lcNewName)

~~Bonnie


>I have a program that generates an text file based on various processes handled. I want two buttons, one that deletes this file and exits, the other that copies it to another locations and exits.
>
>The original filename is stored in a global variable... gOutFname
>The destination filename is stored in a edit box.... this.txtOutFname.value
>
>I have tried:
>
>COPY FILE gOutFname TO this.txtOutFname.value
>COPY FILE &gOutFname TO this.txtOutFname.value
>COPY FILE gOutFname to &this.txtOutFname.value
>COPY FILE &gOutFname to &this.txtOutFname.value
>
>none seem to work. I either get an error or I get a file created in my default directory of &this.txtOutFname.value or this.txtOutFname.value
>
>This should be simple !!!
>
>Oh yea, I then need to use DELETE FILE on the other button... somehow.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform