知识库
>
金融建模
>
公用函数
>
扩展函数
>
数组
>
数组取值
GetBottomN
复制链接
简述
取数组后N个,一般先用SortByField排序,然后使用此函数
定义
GetBottomN(t:Array,N:Integer):Array
参数
T:数据表
N:整数
返回:数组后N个值
范例:
t2:=array(('a':2,'c':13),('a':3,'c':33),('a':3,'c':33));
return GetBottomN(t2,2);
//结果:
相关
FilterTableEx
GetBottomN
GetMiddleN
GetTopN
FilterOneDimEx
GetDistinctValue
ColumnValue2