你好,
我想让用户有机会选择标签名称,然后将显示基于该标签名称的各种变量的时间序列图。
我创建了这个脚本来创建 TAG 名称列表,然后将使用该选择 (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 )
);