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

This API retrieves the memory buffer of a field. The retrieved buffer can be assigned to a pointer.

Parameter
  1. Field
Return value

This API returns a JavaScript Buffer object.

Example
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()

  • No labels