Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY TO
Message
De
20/01/1999 08:32:11
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
20/01/1999 08:10:44
Andrew Logie
Institute of Food Research
Reading, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00177937
Message ID:
00177942
Vues:
31
Hi Andrew,

try
COPY TO ( THIS.cUserXLSFile) TYPE XL5

The brackets perform Name substitution.

Regards
Mark

>Hi,
>I wish to create a unique output file for each user hitting my web based application (DLL). The SYS(2015) call does this nicely, but I can't figure out the code to use with the COPY TO in order to refer to this file. I am sure that I am missing something fundamental here!
>
>After validating my user name and password I assign a unique file name.
>
>THIS.cUserXLSFile = "DIR" + SYS(2015) + ".XLS"
>
>I would like my query builder to to use the newly created file, for this user, overwriting any previous file with the same name. This function is called for all queries.
>
>COPY TO THIS.cUserXLSFile TYPE XL5
>
>If I include the COPY TO "DIR" + SYS(2015) + ".XLS" things work as planned, except that I do not want a unique file every time this part is called in my procedure.
>
>How can I get VFP to use my THIS.cUserXLSFile reference within my query buildr function ?
>
>Any assistance would be greatly appreciated.
>
>
>Andrew Logie
>
>Institute of Food Research
>logiea@bbsrc.ac.uk
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform