I am attempting to use a routine offered elsewhere here by Andy K.
I want to generalise that routine to process a number of tables to copy into new ones. All relevant table names are stored in a table.
In a loop I am passing parameters to the routine thus :-
myoldfile = eg 'sample_$' - obtained from my list
mynewfile = eg 'TEMP_LL' - obtained from my list
myoldfull = the full path of myoldfile from an adir()
Parameters myoldfile,mynewfile,myoldfull
If File( myoldfull)
newpath=Justpath(myoldfull)
Set Default To (newpath)
USE myoldfile In 0
I have tried many variations of the USE command eg with myoldfull and no changing of default folder.
What am I missing?
-Bryan