Versions Compared

Key

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

Get memory buffer.

Parameters
  1. Field
Return value

This API returns a JavaScript buffer object.

Example
Code Block
languagejavascript
  pjs.define("TestDS", { type: 'data structure', elements: {
    "Text1": { type: 'packed decimal', length: 4, decimals: 0, initValue: 1234 },
    "Text2": { type: 'packed decimal', length: 4, decimals: 0, initValue: 5678 }
  }});
 
  pjs.define("P1", { type: 'pointer', initValue: pjs.getBuffer(Text1) });
  pjs.define("P2", { type: 'pointer', initValue: pjs.getBuffer(Text2) });


RPG Equivalent
 

%ADDR()