$FieldgroupId

From m204wiki
Revision as of 17:42, 21 July 2014 by Mlarocca (talk | contribs) (Mlarocca moved page $FIELDGROUPID to $FieldgroupId: Lower case change)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Available as of Model 204 version 7.5.

The $FIELDGROUPID function call returns the ID of the current field group. For example:

BEGIN IN POLICIES FR WHERE POLICY_NUMBER = 100095 FEO FIELDGROUP DRIVER IF DRIVER_MARITAL_STATUS = 'MARRIED' THEN %FGID = $FIELDGROUPID LOOP END END IF END FOR FOR FIELDGROUP DRIVER = %FGID PRINT 'A MARRIED DRIVER' AND DRIVER_ID END FOR END FOR END

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