pjs.editWord()

 

Convert a number to characters using an edit word.

Parameters

  1. Number

  2. Edit word

Example

 

pjs.define("c1", { type: 'char', length: 52, varying: true }); pjs.define("d1", { type: 'decimal', length: 9, decimals: 2, initValue: 1234567.85 }); const editwd = '$ , , &Dollars&and& &Cents'; output = 'The amount is ' + pjs.editWord(num, editwd); return output; //The amount is $1,234,567 Dollars and 85 Cents

 

RPG Equivalent 

%EDITW()