Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Naming Issue

Status
Not open for further replies.

jwsjrmba

Technical User
May 26, 2005
1
US
Here is my issue.

I have five .dbf files. I want them to be saved as application files with the "client number".dbf I am storing the client number to variable "clientnumber" I want to do the following

open database temp
use table1 excl
copy structure to "clientnumber".dbf

Confused, thanks in advance for any assistance you might be able to give.

John
 
copy structure to (clientnumber)

from help:

"When you store the name to the variable or array element, you can substitute the name into a command or function by enclosing the variable in parentheses."
 
Like this:
Code:
m.tablename = "clientnumber"
open database temp
use table1 excl
copy structure to (m.clientnumber)

Regards

Griff
Keep [Smile]ing
 
Dooh, sorry
Code:
m.tablename = "001020345"
open database temp
use table1 excl
copy structure to (m.tablename)

Regards

Griff
Keep [Smile]ing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top