$ChkTag: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
|
(No difference)
|
Revision as of 19:42, 14 July 2014
Use the $CHKTAG function to determine whether any full-screen input fields that resulted in error conditions were entered by the terminal operator. The full-screen input fields either did not pass the automatic validation tests specified for the fields, or contained errors detected by the request.
Syntax
The format of the $CHKTAG function is:
$CHKTAG (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 inputname (representing an input field on the specified screen) is not included in the function call, $CHKTAG returns the number of input items with tags on. If inputname is included, $CHKTAG returns a value of 0 if the specified input item's tag is not on. $CHKTAG returns a value of 1 if the item's tag is on.
If screenname and/or inputname are quoted strings, the name must be enclosed in single quotation marks, as shown below:
$CHKTAG (%SCRNAME, 'ACCNTNO')
Example
IF $CHKTAG('ACCTG') GT 0 THEN REREAD SCREEN ACCTG