Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Append FROM with a variable holding a table's name
Message
 
 
To
02/08/2000 14:44:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00399979
Message ID:
00400108
Views:
20
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 !
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform