Kun*_*oy 0 rpgle ibm-midrange
我正在基于业务逻辑在 RPGLE 程序中加载数组,这可能会导致数组中的数据重复。
我想首先知道如何检测重复。
最后我想知道如何删除数组中的重复项。
Bar*_*ris 6
在添加之前,您可以使用 %LOOKUP 查看该条目是否已经在数组中。
if %lookup(newValue : array : 1 : numElems) = 0; // the element is not in the array yet numElems += 1; array(numElems) = newValue; endif;
归档时间:
4 年,12 月 前
查看次数:
186 次
最近记录:
4 年,8 月 前