Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem copying TXT output file????
Message
De
26/08/2001 23:19:29
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00549291
Message ID:
00549331
Vues:
20
Ok, this worked... why do I need the ( ) and when should I use them? I thought the & was what I needed


>In cases like this you should use name expression - a variable enclosed in parentheses.
>
COPY FILE (gOutFname) TO (this.txtOutFname.value)   && copy
>ERASE (gOutFname)    && Delete file
>or
>DELETE FILE (gOutFname)
>
>
>>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.
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform