...
- Search argument
- Array
- Start index (OR resulting indicators object)
- Resulting indicators (can be null)
Return Value
Function will return Returns 0 if no matching element has been is found; otherwise, otherwise it will return the element index is returned.
Example
Code Block | ||
---|---|---|
| ||
pjs.define("i", { type: 'integer', length: 3, decimals: 0 }); pjs.define("SRCHWD", { type: 'packed decimal', length: 2, decimals: 0 }); pjs.define("arr", { type: 'packed decimal', length: 2, decimals: 0, dim: 20, orderby: 'ASCEND' }); arr[1] = 12; arr[2] = 23; arr[3] = 54; arr[4] = 57; arr[5] = 89; arr[6] = 63; arr[7] = 29; arr[8] = 26; arr[9] = 73; arr[10] = 50; SRCHWD = 44; pjs.lookupLE(SRCHWD, arr, { low: 80, equal: 81 }); |
...