Displaying the current occurrence value in an FEO loop: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__TOC__ <span class="f_Para">In User Language, the OCC IN phrase lets you refer back to the label of a FOR EACH OCCURRENCE OF (FEO) statement to get the number of the current...")
 
No edit summary
Line 9: Line 9:


# In the <span class="term">Source Code</span><span class="f_ListNum1"> page, right click on a line that contains an FEO statement. </span>
# In the <span class="term">Source Code</span><span class="f_ListNum1"> page, right click on a line that contains an FEO statement. </span>
# Select <span class="term">FEO OCC IN value</span><span class="f_ListNum1"> from the context menu: </span>
# Select <span class="term">FEO OCC IN value</span><span class="f_ListNum1"> from the context menu. </span>
<!-- [[File:feo3a2_zoom60.gif|452x268px|feo3a2]]<span class="f_ListContinue"> </span> -->


[[File:feo3a2_zoom60.gif|452x268px|feo3a2]]<span class="f_ListContinue"> </span>
<span class="f_ListNum1">The occurrence </span><span class="f_ListContinue">value displays in the </span><span class="term">Value of OCC IN for FEO loop</span><span class="f_ListContinue"> window. </span>
 
<!-- [[File:feo4_zoom50.gif|356x184px|feo4]]<span class="f_ListContinue"> </span> -->
<span class="f_ListNum1">The occurrence </span><span class="f_ListContinue">value displays in the </span><span class="term">Value of OCC IN for FEO loop</span><span class="f_ListContinue"> window: </span>
 
[[File:feo4_zoom50.gif|356x184px|feo4]]<span class="f_ListContinue"> </span>


<span class="f_Para">The Client </span><span class="f_Monospace">[[feoDisplay command|feoDisplay]]</span><span class="f_Para"> command performs the same operation. </span>
<span class="f_Para">The Client </span><span class="f_Monospace">[[feoDisplay command|feoDisplay]]</span><span class="f_Para"> command performs the same operation. </span>


[[Category:Debugger Home]]
[[Category:Debugger Home]]

Revision as of 03:50, 4 April 2023

In User Language, the OCC IN phrase lets you refer back to the label of a FOR EACH OCCURRENCE OF (FEO) statement to get the number of the current field occurrence in the loop. For example:  

ff: FEO MISCINFO  
     %array(OCC IN ff) = VALUE IN ff
      ... 

If you are debugging a request that contains FEO loops, you can easily display the current occurrence number value in the Debugger Client:

  1. In the Source Code page, right click on a line that contains an FEO statement.
  2. Select FEO OCC IN value from the context menu.

The occurrence value displays in the Value of OCC IN for FEO loop window.

The Client feoDisplay command performs the same operation.