Displaying the current occurrence value in an FEO loop

From m204wiki
Revision as of 01:36, 3 November 2022 by Ekern (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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:

feo3a2

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

feo4

The Client feoDisplay command performs the same operation.