你好,
我想為用戶提供選擇標籤名稱的機會,然後它將根據該標籤名稱顯示各種變數的時間序列圖。
我創建了此腳本來建立標籤名稱列表,然後使用該選擇(onchange)來填充圖形產生器腳本中的變數。
但是,這會建立一個空白列錶框。 誰能確定為什麼嗎?
謝謝
Names Default To Here( 1 );
dt = Current Data Table();
ET_LIST = {};
ET_TAG_List = {};
//removes empty column from the column list
For( i = N Col( dt ), i >= 1, i--,
ET_col = Column( dt, i ) << Get Name();
If( (Col N Missing( Column( i ) ) / N Row()) != 1 & Contains( ET_col, "ETarg" ),
Insert Into( ET_LIST, ET_col )
);
);
Show( ET_LIST );
//takes column list and removes the TAG extension to provide the list of tags
n = N Items( ET_LIST );
For( i = 1, i <= n, i++,
ETARG = ET_LIST[i] ;
NFull = Length(ETARG) ;
ETTAG = Left(ETARG,(NFull-6)) ;
Insert Into(ET_TAG_List, ETTAG);
);
Show(ET_TAG_List);
//want to now take that list and put it into a list box for user to select. will use getselected/onchange to update the charts
New Window( "Example",
List1 = List Box( ET_TAG_List );
List1 << Set Items( ET_TAG_List );
);
輸入框為空..

這 ”;”正在停止處理,更改為
New Window( "Example",
List1 = List Box( ET_TAG_List ),
List1 << Set Items( ET_TAG_List )
);