Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'COPY TO' question
Message
From
07/08/2001 12:24:24
 
 
To
07/08/2001 12:19:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00540765
Message ID:
00540768
Views:
27
>If I use the COPY TO command, can I use a variable to name the table?
>
>EX:
>THISFORM.VARIABLE = '12345'
>COPY TO \PATH\DIRECTORY\THISFORM.VARIABLE.DBF.
>
>When I do that I get a table named "thisform.variable.dbf" instead of "12345.dbf"
>
>How do I dictate that I am going to use a variable? &THISFORM.VARIABLE..DBF ???
>
>Scott

I'd put the whole path and file name into a var, then copy using a name expression.
e.g.
thisform.Variable = '12345'
lcFull = "\PATH\DIRECTORY\"+thisform.variable
Copy To (lcFull)
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform