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

Replaces contents of a string with value provided to it. 

Parameters
  1. Character or string value to replace
  2. Start position to replace (Optional)
  3. Length to replace (Optional)
Example

 

pjs.define("myString", { type: 'char', length: 11, initValue: 'Windsor, ON' });

myString = myString.replaceString('Toronto');

return myString;
//"Toronto, ON"
pjs.define("myString", { type: 'char', length: 12, initValue: 'Lancaster, PA' });

myString = myString.replaceString('CA', 11);
 
return myString;
//"Lancaster, CA"

 

 

  • No labels