$MisGrup

From m204wiki
Revision as of 13:19, 20 April 2013 by Alex (talk | contribs) (Automatically generated page update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The $MISGRUP function is used with the ON units ON MISSING FILE and ON MISSING MEMBER. It returns the group name if the error occurred in group context, or null if the error occurred in file context.

Example

The following is an example of an ON MISSING FILE unit that uses the $MISGRUP, $MISLOC, $MISNAME, and $MISNUM functions:

ON MISSING FILE %X = $MISGRUP IF %X = THEN * THIS IS FILE CONTEXT BECAUSE $MISGRUP RETURNED NULLS PRINT 'MISSING FILE' AND $MISNAME AND 'AT' AND $MISLOC ELSE PRINT 'MISSING GROUP' AND %X AND 'FILES FOLLOW:' FOR %I FROM 1 TO $MISNUM BY 1 PRINT $MISNAME(%I) AT 13 AND 'AT' AND $MISLOC(%I) END FOR END IF END ON