<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />使用对话框脚本有麻烦,让用户从100K行的列中选择一个或多个选择。该列不超过6种不同的选择。
谢谢您的帮助
也许是这样的事情?
NamesDefaultToHere ( 1 ) ;
//样本字符数据
DT = newtable的 ( “测试数据” , NewColumn ( “柱” ,数字 ,公称 ,式 ( RandomInteger ( 0 , 10 ))) , AddRows ( 10000 )) ;
DT << runFormulas ;
柱 ( DT , “柱” ) << deleteFormula ;
柱 ( DT , “柱” ) << 数据类型 ( 字符 ) ;
//对话框
distinctVals = 关联数组 ( 柱 ( DT , “柱” ) << 的GetValues ) << getKeys ;
NW = 新窗户 ( “选择一个或多个值” ,
磅 = 列表框 ( distinctVals , validateScript ) ,
BB = ButtonBox ( “好” , OKscript ,启用 ( 0 ))
) ;
//验证脚本
validateScript =
EXPR (
如果 ( NITEMS ( 磅 << getSelected ) > 0 , BB << 启用 ( 1 ) , BB << 启用 ( 0 )) ;
) ;
//好的脚本
OKscript =
EXPR (
NW << 关闭窗口 ; 瓦尔斯 = 磅 << getSelected ; 打印 ( 瓦尔斯 ) ;
) ;