$FieldgroupOccurrence

From m204wiki
Revision as of 18:56, 5 August 2013 by ELowell (talk | contribs) (Created page with "Available as of Model 204 version 7.5. The $FIELDGROUPOCCURRENCE function returns the current occurrence number of the field group. For example: <p class="code"> FOR EACH O...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Available as of Model 204 version 7.5.

The $FIELDGROUPOCCURRENCE function returns the current occurrence number of the field group.

For example:

FOR EACH OCCURRENCE OF FIELDGROUP REDSOX PRINT $FIELDGROUPOCCURRENCE CALL CHANGINGPROC PRINT $FIELDGROUPOCCURRENCE END FOR

This example might print a different value before and after the CHANGINGPROC if the procedure inserted or deleted the field group occurrence before the current one.

$FIELDGROUPOCCURRENCE returns 0 if the current field group has been deleted.