Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Tech Tip: Pass the Parameters

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tech Tip: Pass the Parameters

    ** This thread discusses the article: Tech Tip: Pass the Parameters **
    ** This thread discusses the Content article: Tech Tip: Pass the Parameters0

  • #2
    Tech Tip: Pass the Parameters

    ** This thread discusses the article: Tech Tip: Pass the Parameters **
    For non-prototyped calls 'read only reference' can be accomplished ( in some if not all cases ) by the use of the factor 2 on the 'parm' opcode

    Comment


    • #3
      Tech Tip: Pass the Parameters

      ** This thread discusses the article: Tech Tip: Pass the Parameters **
      "Prototyped program calls can support all three of these parameter styles." Parameters to programs can only be passed by (constant) reference. Passing parameters by value is only allowed for proceudres and functions. Extract from the RPGIV Reference: The VALUE keyword cannot be specified for a parameter if its prototype was defined using the EXTPGM keyword. Calls to programs require that parameters be passed by reference. Birgitta

      Comment

      Working...
      X