Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'COPY TO' question
Message
 
To
07/08/2001 12:19:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00540765
Message ID:
00540774
Views:
19
>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
cName = '\PATH\DIRECTORY\' + THISFORM.VARIABLE + '.DBF'
COPY TO (cName)
Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform