Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY TO
Message
From
20/01/1999 08:10:44
Andrew Logie
Institute of Food Research
Reading, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
COPY TO
Miscellaneous
Thread ID:
00177937
Message ID:
00177937
Views:
81
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
Next
Reply
Map
View

Click here to load this message in the networking platform