Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming .DBFs within a DBC
Message
From
16/12/1997 11:51:45
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00065774
Message ID:
00066258
Views:
41
>>Does anyone know a straightforward way to rename .DBF files that are included within a DBC and still retain all of the DBC information, like aliases, field captions, rules, etc.?
>
>Here're a couple ideas:
>
>There's the Rename Table command to change the DBC name.
>
>To change the actual filename, you can do a couple ways. The simplest is to change the filename(s) in Explorer, then go directly to the DBC, try to open it, get the Locate message, and then find the table so that the DBC can update itself. Make DBC backup first.
>
>Also, you can copy the info to an array using AFIELDS(), then create a new table from it, append, and delete the old one. I can't recall how much info is carried this way, quite a bit, but maybe not all...

Bruce,

Thanks very much for the ideas. I hadn't thought of the first (filename change idea). The second I was trying to avoid. Going to try the first idea now.

Walt
Previous
Reply
Map
View

Click here to load this message in the networking platform