|
Home > Archive > Programming with dBASE > June 2005 > Copy table in different directory with variable
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Copy table in different directory with variable
|
|
| Dinesh Chauhan 2005-06-12, 11:23 am |
| I want to copy table in different directory (databasesallias' folder). Here
_app.month = cMonth(date()) and Debtors is name of the table. At present I
am using
_APP.DATABASES[1].copyTable( "Debtors", "Debtors"+ _app.Month )........
But this copy the table in the current Directory. So one user do, it will
save the file on his machine in current directory. But I want to saved this
copy table in server directory.
Dinesh Chauhan
Fiji Islands
| |
| Bruce Beacham 2005-06-12, 8:23 pm |
| Dinesh Chauhan wrote:
> I want to copy table in different directory (databasesallias' folder). Here
> _app.month = cMonth(date()) and Debtors is name of the table. At present I
> am using
> _APP.DATABASES[1].copyTable( "Debtors", "Debtors"+ _app.Month )........
> But this copy the table in the current Directory. So one user do, it will
> save the file on his machine in current directory. But I want to saved this
> copy table in server directory.
You can specify the path (and rename the table if you wish), eg
create table mytable (mynumb integer)
_app.databases[1].copytable("mytable", "C:\mymovedtable")
Bruce Beacham
|
|
|
|
|