[英]How to store a list or a number into empty array in jsl?
I face a problem on how to store a list or a number into an empty array, below is my code : 我在如何将列表或数字存储到空数组中遇到问题,下面是我的代码:
For( i = 1, i <= N Items( S ), i++,
dt:Family Device << set name( "family device" );
dt << Select Where(Starts With( dt:family device, S[i] ) ) ;
baseDT = dt << Subset( output table name( "Subset" ), selected rows( 1 ), selected columns( 0 ), "invisible");
I plan to store baseDT in the empty array, Anyone has an idea on the store function? 我打算将baseDT存储在空数组中,有人对存储功能有想法吗? I very new to JSL if in python we will use append function to store, then how about jsl? 我对JSL非常陌生,如果在python中我们将使用append函数进行存储,那么jsl呢?
Initialize an empty array as 将空数组初始化为
emp_array = {};
Append to array as : 追加为数组:
Insert Into(emp_array, baseDT)
Then you can access the elements using index eg: 然后,您可以使用索引访问元素,例如:
emp_array[n]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.