列表作为数据表变量你好,
我需要将列表保存为数据表变量。
My List = {1,"2"};
DT << Set Table Variable( "The List", My List ); //doesn't work - the value of the variable is string "List"
然后,如何将列表分配给一些新变量
MyNewListVariable = DT<< Get Table Variable( "The List" ); // Would it work?
谢谢。
回复:列表作为数据表变量谢谢你,
下面是对我有用的代码:
dt = 新表(“表”);
我的列表 = {"A","B"};
dt << 设置表变量("Var", Char(MyList) );
list_as_string = dt << 获取表变量( "Var" );
list_as_list = 解析(list_as_string);
回复:列表作为数据表变量JMP 表变量全部存储为字符串,因此您的列表将以字符串形式返回,并且您必须在应用程序中对其进行转换。