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

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

Parameters

  1. Comparator
  2. Start Index

Examples

pjs.define("c1", {type: 'char', length: 25 });
pjs.define("num", {type: 'integer', length: 5 });
 
c1 = '$****12.345*** ';
num = c1.check(' $*')

return num;
//6
pjs.define("c1", {type: 'char', length: 25 });
pjs.define("num", {type: 'integer', length: 5 })
c1 = '$****12.345*** ';
num = c1.check(' $*', 7)

return num;
//7

 

 

RPG Equivalent

%CHECK()

  • No labels