Versions Compared

Key

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

...

Code Block
languagejavascript
pjs.define("ARRX", { type: 'char', length: 5, dim: 5, initValue: 'Hi' });
pjs.define("ARRY", { type: 'char', length: 5, dim: 10, initValue: 'Test' });

pjs.MoveArray("ARRX", "1", "ARRY", "1", false);

return ARRY;
//'Hi   ','Hi   ','Hi   ','Hi   ','Hi   ','Test ','Test ','Test ','Test ','Test '

...

Code Block
languagejavascript
pjs.define("CHAR", { type: 'char', length: 5, initValue: 'Hello' });
pjs.define("ARRY", { type: 'char', length: 1, dim: 10 });

pjs.MoveArray("CHAR", "1", "ARRY", "1");

return ARRY;
//'H','e','l','l','o',' ',' ',' ',' ',' '

...

Code Block
languagejavascript
pjs.define("ARRX", { type: 'char', length: 5, dim: 5, initValue: 'Test' });
pjs.define("ARRY", { type: 'char', length: 5, dim: 10, initValue: '' });

pjs.MoveArray("ARRX", "3", "ARRY", "1");

return ARRY;
// 'Test ','Test ','Test ','     ','     ','     ','     ','     ','     ','     '

...

Code Block
languagejavascript
pjs.define("ARRX", { type: 'char', length: 5, dim: 5, initValue: 'ABCD' });
pjs.define("ARRY", { type: 'char', length: 5, dim: 10, initValue: 'EFGH' });

pjs.MoveArray("ARRX", "1", "ARRY", "6");

return ARRY;
//'EFGH ','EFGH ','EFGH ','EFGH ','EFGH ','ABCD ','ABCD ','ABCD ','ABCD ','ABCD '

...

Code Block
languagejavascript
pjs.define("someInd", { type: 'boolean', initValue: true });

pjs.MoveArray("'111111'", "1", "flags", "71");

return flags[72];
//true

...

Code Block
languagejavascript
pjs.define("ARRX", { type: 'char', length: 2, dim: 5, initValue: 'AB' });
pjs.define("CHAR", { type: 'char', length: 10 });

pjs.MoveArray("ARRX", "1", "CHAR", "1");

return CHAR;
//'ABABABABAB'

...