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

COPY TO (This.cUserXLSFile) TYPE XLS
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform