In order for this site to work correctly, and for us to improve the site, we need to store a small file (called a cookie) on your computer.
By continuing to use this website, you agree to our cookies and privacy policy.
  
Home page Home page Home page Home page
Pixel
Pixel Header R1 C1 Pixel
Pixel Header R2 C1 Pixel
Pixel Header R3 C1 Pixel
Pixel

Uncommon Knowledge - WC_Display_Action%

Flag variable used to tell the system that changes have been made to the current record in such a way that the record must be redisplayed. The possible values of WC_Display_Action% are listed in the INCLUDE record as


0001           REDISPLAY.HIGHLIGHTS$ (4)
0002           REDISPLAY.PROMPTS$ (5)
0003           REDISPLAY.LIST$ (6)
0004           REDISPLAY.ALL$ (7)
0005           RECALC.PROMPTS$ (9)

REDISPLAY_HIGHLIGHT$  same as a REDISPLAY_PROMPT$ except that if
                      highlighting information for individual prompts has
                      been changed, this will be updated and displayed.

REDISPLAY_PROMPT$     redisplays all prompts on screen, both F type and S
                      type.

REDISPLAY_LIST$       redisplays the contents of the fields whose prompt
                      numbers are contained in the field mark delimited
                      array WC_Redisplay_List%.

REDISPLAY_ALL$        does a complete redisplay of all prompts and labels in
                      the screen referring to the WC_Redisplay_list%
                      variable for the prompts to display. (See REVMEDIA
                      Vol 1 Issue 2 Page 3).

RECALC_PROMPT$        this recalculates all symbolics on the screen and can
                      be invoked from within the window by pressing the
                      undocumented key Alt-R. (The equivalent of a
                      spreadsheet "Recalculate" - handy to ensure that all
                      symbolics are up to date).

The system does not always need to be notified that WC_Display_Action% has been set. WC_Reset% is used to notify when needed. When on a prompt, WC_Reset% does not need to be set on the Edit Pattern (and by extension, the Invalid logic, although here the display action will not be taken until it has repassed through the edit logic). Nor does it need to be set on the Options and Softkeys. When the user returns through the prompt (and before the Post process is run) or chooses Options or Softkeys again WC_Display_Action% will be taken. Also, WC_Reset% does not need to be set on the Post process. The display action will be taken after the perpetual logic has been run.

In the following descriptions "Reset the prompt" is used to mean restart prompting again as though the prompt had just been entered. Thus if the prompt were empty, the default logic would be rerun followed by the pre logic. To force the system to recognise that WC_Display_Action% has been set, the following action must be taken (remember that different values of WC_Reset% have different effects on WC_Is% and WC_Is_Orig% - see Vol 2 Issue 8):-

Default       Setting WC_Reset% to 4 will run the Pre Prompt logic followed
              by the Perpetual logic and, if WC_Reset% is not changed, will
              take the display action specified. It will then WC_Reset% the
              prompt. Setting WC_Reset% to 5 will repeat the above but omit
              the Perpetual logic.

Pre Prompt    Setting WC_Reset% to 4  will run the Perpetual logic and, if
              WC_Reset% is not changed, will take the display action
              specified. It will then WC_Reset% the prompt. Setting
              WC_Reset% to 5 will take the display action specified and
              WC_Reset% the prompt.

Options       Setting WC_Reset% to 2 or 3 will run the Post logic followed
              by the Perpetual logic and, if WC_Reset% is not changed, will
              take the display action specified. It will then WC_Reset% the
              prompt. Setting WC_Reset% to 4 will run the Perpetual logic
              and, if WC_Reset% is not changed, will take the display action
              specified. It will then WC_Reset% the prompt. Setting
              WC_Reset% to 5 will take the display action and WC_Reset% the
              prompt.

Edit          Setting WC_Reset% to 2 or 3 on a single valued or associated
              multivalued prompt will run the Post logic followed by the
              Perpetual logic and, if WC_Reset% is not changed, will take
              the display action specified. It will then WC_Reset% the
              prompt. If WC_Reset% is set to 4 on a single valued or
              associated multivalued prompt it will run the Perpetual logic
              and, if WC_Reset% is not changed, will take the display action
              specified. It will then WC_Reset% the prompt. Setting
              WC_Reset% to 5 on a single valued or associated multivalued
              prompt will take the display action then WC_Reset% the prompt.
              On a non-associated multivalued prompt, the above processing
              will be carried out when return is pressed on a blank line.

Post          Setting WC_Reset% to 5 will just take the display action
              without running the perpetual logic and move to the next
              prompt.

Invalid       WC_Reset% values set in the invalid logic will be acted upon
              by the edit logic and will follow the same pattern.

Softkeys      Setting WC_Reset% to 2 or 3 will run the Post logic followed
              by the Perpetual logic and, if WC_Reset% is not changed, will
              take the display action. It will then WC_Reset% the prompt.
              Setting WC_Reset% to 4 will run the Perpetual logic and, if
              WC_Reset% is not changed, will take the display action. It
              will then WC_Reset% the prompt. Setting WC_Reset% to 5 will
              take the display action and the WC_Reset% the prompt.
(Volume 3, Issue 2, Pages 12-14)
Pixel
Pixel Footer R1 C1 Pixel
Pixel
Pixel
Pixel