列表作為數據表變量你好,
我需要將列表保存為數據表變量。
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 表變量全部存儲為字符串,因此您的列表將以字符串形式返回,並且您必須在應用程序中對其進行轉換。