$ChkMod

From m204wiki
Revision as of 20:02, 2 January 2014 by JAL (talk | contribs)
Jump to navigation Jump to search

Use the $CHKMOD function after a READ SCREEN or REREAD SCREEN statement to determine whether the terminal operator entered data for any full-screen input fields or for a specific input field. See a discussion of the full-screen feature in Full-screen processing.

Syntax

The format of the $CHKMOD function is:

$CHKMOD (screenname [, inputname])

  • Both the screenname and inputname arguments are expected to be string expressions and can include quoted strings, %variables, field names, or functions.
  • If screenname and/or inputname are quoted strings, the name must be enclosed in single quotation marks:

    $CHKMOD ('EMPSCRN', 'NAME')

  • If inputname (representing an input field on the specified screen) is not included in the function call, $CHKMOD returns the number of input fields for which the terminal operator entered data.
  • If inputname is specified, $CHKMOD returns a value of 0 if the input field was not modified. $CHKMOD returns a value of 1 if the field was modified.