>cTblName = "MyTable" >use (cTblName) >afields(aDbfStruct) >set database to MyDatabase >create table TEMP name TEMP from array aDbfStruct >close tables >drop table (cTblName) >rename table ("TEMP") to (cTblName) >*-- I was hoping that rename table will rename actual file name >*-- but it does not. So I have to do this: >rename ("TEMP.DBF") to (cTblName + ".DBF") >rename ("TEMP.FPT") to (cTblName + ".FPT") >>
cTblName = "MyTable" use (m.cTblName) afields(aDbfStruct) set database to MyDatabase close tables drop table (m.cTblName) create table (m.cTblName) from array aDbfStructCetin