Versions Compared

Key

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

...

  1. Value to look for
  2. Index to start from (optional) - if omitted, search starts from the end of the string; index 1 is considered the first character in the string
  3. Length to search (optional) - if omitted, the rest of the string is searched
Example

 

Code Block
languagejavascript
pjs.define("source", { type: 'char', length: 15, initValue: 'Dr. Doolittle' });

pjs.define("pos", { type: 'unsigned integer', length: 5, decimals: 0 });
 
pos =

 
pos = source.scanReverse('l');
 
return

 
return pos;

// 12

 

...