Function Level Process Points

  

DEVELOPER

There are two Event Process Points available for the Function Definition, On Function Entry and On Function Exit.  These are the same for all function types.

On Function Entry is the first event process point in a function and is available in any type of function.  It is executed only once during the initialization of the function.  The logic associated with this process point is typically used for variable initialization and the setting of default values.  Scratch variables are also available at this point.

On Function Exit is the last event process point in a function and is available in any type of function.  It is executed only once after all the activity in the function is complete.   The logic associated with this process point is typically used for the setting of communication variables and flags for subsequent function processing.

The FNEXIT command must NOT be used in the logic associated with On Function Exit.

Comment on this topic

Topic ID: 520012