String.all()



The String.all() API will repeat a string value using the number of occurrences provided. If the number of times to repeat is not provided, the value is repeated to the length of the result field.

Parameters

  1. String value

  2. Number of time to repeat (optional)

Examples

Example 1:



pjs.define("c1", { type: 'char', length: 6 }); pjs.define("result", {type: 'char', length: 10}); c1 = 'String'; result = String.all(c1); return result; //StringStri



Example 2:

pjs.define("c1", { type: 'char', length: 6 }); pjs.define("result", {type: 'char', length: 30}) c1 = 'String'; result = String.all(c1, 5); return result; //StringStringStringStringString