Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Returns the number of elements in the specified array, table, or multiple-occurrence data structure.

RPG Equivalent: %ELEM()

Example
pjs.define("myConstant", { type: 'decimal', length: 1, decimals: 0, initValue: 4 });
pjs.define("myArray", { 
  type: 'packed decimal',
  length: 10,
  decimals: 0,
  dim: myConstant 
});
 
for (i = 1; i <= pjs.elem(myArray); i++) {
  console.log(MyArray[i]);
}
  • No labels