Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...


The string.checkReverse() method returns the last position of the in a string that contains a character that , which does not appear in string the comparator.

 


Parameters

  1. Comparator
  2. Start Index

Examples


 

Code Block
pjs.define("c1", { type: 'char', length: 50 });
pjs.define("num", { type: 'packed decimal', length: 2, decimals: 0 });

c1 = 'My *dog* Spot.* @ * @ *';
num = c1.checkReverse(' *@');

return num;
//14


Code Block
pjs.define("c1", { type: 'char', length: 6, initValue: '$2000.' });
pjs.define("num", { type: 'integer', length: 5, decimals: 0 });

num = c1.checkReverse('0123456789', 5);

return num;
//1

 

 



RPG Equivalent

%CHECKR()