Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming tables which are part of database
Message
 
 
To
25/11/2002 13:26:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00724370
Message ID:
00726563
Views:
17
>> lcBuffer = strtran(m.lcBuffer,m.tcOldDBCName,m.tcNewDBCName)
>
>Only one gotcha here - the dbc name in the backlink (which is basically what you're using here) must be null terminated. So:
>
>lcBuffer = strtran(m.lcBuffer,m.tcOldDBCName+chr(0),m.tcNewDBCName+chr(0))
>
>otherwise, you may get an error if the new name is shorter than the old one.

Thanks a lot. In my case both names are the same, so I didn't find this problem.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform