* These are sections, not the whole code. >* >lcTMPFile = m.P_TempDir + TempName() + '.DBF' >select * from EmpS0 into table "&lcTMPFile." >lcExportAlias = alias() > >use in select( m.lcExportAlias ) >use ( m.lcTMPFile ) exclusive && It is a TABLE, not a cursor! >lcExportAlias = alias() > >alter table ( m.lcExportAlias ) ; > drop mutdate ; > drop muttime ; > drop thesource > >alter table ( m.lcExportAlias ) alter COLUMN reason C(15) > >alter table ( m.lcExportAlias ); > add EmpName C( cnMAXLenForName ); > add EmpIndVol C( cnMAXLenForIndVol ) > >alter table ( m.lcExportAlias ) alter column empno C(5)