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 11 Next »

This API allows you to find an element which is great than the argument you pass to it.

Parameters
  1. Search argument
  2. Array
  3. Start index (OR resulting indicators object)
  4. Resulting indicators (optional)
Return Value

Returns 0 if no matching element is found; otherwise, the element index is returned.

Example
  pjs.define("Word1", { type: 'char', length: 15 });
  pjs.define("arr1", { type: 'char', length: 15, dim: 5, orderby: 'DESCEND' });

  arr1[1] = 'Patrick';
  arr1[2] = 'Owenals';
  arr1[3] = 'Nancy';
  arr1[4] = 'Manan';
  arr1[5] = 'Lincoln';

  Word1 = 'Manan';

  pjs.lookupGT(Word1, arr1, { high: 72 });


RPG Equivalent

%LOOKUPGT()

  • No labels