我在論壇中找到了一種方法,它提供了將表連接在一起的功能。我已經嘗試了一個現有表的列表,其中起始表是相同類型。出現的錯誤消息是:在訪問或評估“設置每個值”時,列Source {1}的表達式的結果類型錯誤,設置每個值(filenow)/ * ### * /
Names Default To Here( 1 ); Clear Log(); Clear Symbols(); Close All(Data Tables, No Save); Close All(Journals, No Save); Close All(Reports,No Save);
Path = "C:\JmpTest\";
filelist = {};
filelist[1] = Open(Path||"file 1.jmp",private);
filelist[2] = Open(Path||"file 2.jmp",private);
filelist[3] = Open(Path||"file 3.jmp",private);
filefinal = "file 123.jmp";
nf=nitems(filelist); //number of items in the working list
cctable= New Table( "Combined data table ");//make an empty table
cctable << New Column( "Source", Character, Nominal );
For( iii = 2 , iii <= nf, iii++, //this starts the first loop
filenow = ( filelist[iii] );
fileopen= filenow;
//dt=open(fileopen,private);
//dt=open(fileopen,importset,private);//Import settings used in the open argument
dt = filelist[1];
New Column( "Source", Character, Nominal );
:Source << set each value( filenow );
dt<<NEW column=""></NEW>如JMP日誌中所述
Name Unresolved: filepath in access or evaluation of 'filepath' ,
變量“filepath”不存在