Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'COPY TO' question
Message
De
07/08/2001 12:24:24
 
 
À
07/08/2001 12:19:29
Scott Starkey
Tindall Record Storage
Fort Worth, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00540765
Message ID:
00540768
Vues:
20
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform