Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create from structure
Message
From
28/02/2003 17:40:22
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00759607
Message ID:
00759740
Views:
25
Thank you. That helps. I could swear I looked at that syntax. One unusual thing is that if you look at the following code the new table created will be newdatabase!junker, but when you use the table the table is called newjunk. If you remove the commented line, the name stored in the newdatabase.dbc is newjunk.
create database c:\temp\junk\olddatabase
create table c:\temp\junk\junker database olddatabase (creallyreallylongfieldname c(40))

create database c:\temp\junk\newdatabase
copy structure exte to c:\temp\junk\strujunk database newdatabase
select 0
use c:\temp\junk\strujunk.dbf
*replace all table_name with [newjunk] && corrects the table name
USE && must have the structure CLOSED in order to create a table from it !!!

create c:\temp\junk\newjunk database newdatabase from c:\temp\junk\strujunk
I found this syntax very tricky ... would have helped to have at least one example in the help on this topic!
Carole Shaw
Fred Hutchinson Cancer Research Center

Eagles may soar, but weasels don't get sucked into jet engines.
Previous
Reply
Map
View

Click here to load this message in the networking platform