Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'COPY TO' question
Message
 
 
À
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:
00540766
Vues:
13
Yes you can
lcFileName = "\PATH\DIRECTORY\" + Trim(THISFORM.VARIABLE)
COPY TO (lcFileName)
   or
COPY TO ("\PATH\DIRECTORY\" + Trim(THISFORM.VARIABLE))
It's called name expression. Take a look at "Creating Name Expressions" topic in foxpro help.

>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform