$FieldgroupOccurrence: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 14: Line 14:


$FIELDGROUPOCCURRENCE returns 0 if the current field group has been deleted.
$FIELDGROUPOCCURRENCE returns 0 if the current field group has been deleted.
[[Category:SOUL $functions]]

Revision as of 19:41, 13 August 2013

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.