Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Append FROM with a variable holding a table's name
Message
 
 
À
02/08/2000 14:44:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00399979
Message ID:
00400108
Vues:
21
Tip: If you are appending from a VFP cursor (a temporary file), such as one created with SELECT .... INTO CURSOR MyCursor

... you can say APPEND FROM (DBF("MyCursor))

>What is the proper syntax for using a variable which holds a table's name instead of a literal table name with the APPEND FROM statement?
>I am changing the table's name dynamically in a prior step.
>
>Is it something like this ?
>
> ex.
>
> local array aNames{'jones', 'smith', thomas'}
> local sTablename, i
>
> for i = 1 to 10
> sTablename = "MY_NEW" + aNames
> Append from sTablename
> next
>
>
> Thanks for the help !
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform