$Screen_clear

From m204wiki
Revision as of 18:20, 30 May 2017 by Alex (talk | contribs) (Created page with "{{DISPLAYTITLE:$Screen_clear}} <span class="pageSubtitle">Clear tagged and/or modified attributes in a screen</span> This function clears the tagged and/or modified attribute...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Clear tagged and/or modified attributes in a screen

This function clears the tagged and/or modified attributes for all items in a screen. While it might be useful in some normal full-screen applications, it is probably most useful in applications that receive output from a non-full-screen source but populate a screen from that source, in order to be able to use legacy full-screen code. When the legacy code has produced an updated version of the screen, the code communicating with the external source would probably want to clear the tagged and/or modified bits, just as a Read Screen statement would.

Under Model 204 7.8 and later, $Screen_clear is callable.

Syntax

[%one =] $Screen_clear(scr_item, [mod_or_tag])

Syntax terms

%one This function always returns 1.
scr_item The screen item in the screen for which attributes are to be cleared. This can be a variable of the form %screen:item or a screen item name variable of the form :%string.
mod_or_tag Indicates the attributes to be cleared. If the string 'TAG' is specified, only the tagged attributes are cleared. If the string 'MOD' only the modified attributes are cleared. If any other value is specified, including no value, both tagged and modified attributes are cleared.

Examples

  1. This code fragment clears the modified attribute for screen foo (which contains screen item bar):

    %rc = $screen_clear(%foo:bar, "MOD")