> 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.