tips:revmedia:v2i9a7

Uncommon Knowledge - WC_Amv_Action%

Published ByDateVersionKnowledge LevelKeywords
Sprezzatura Ltd01 MAR 19912.03+EXPERTWINDOW_COMMON%, WC_AMV_ACTION%, WC_AMV%, WC_RESET%, WC_AMV_VARS%, WC_MV%, WC_IS%, WC_IS_ORIG%

Flag variable used to tell the window processor what action to take on the current (or in the case of one value, all) AMV group. Note that this will actually work regardless of whether the prompt is an AMV or not (i.e. if it is just a normal MV) as long as it is grouped to itself. The possible values are as follows

1CLEARclears AMV group and resets counters (WC_Amv_Vars%<1> + <3>) even if the current prompt is protected.
2DELETEdeletes line at WC_Mv% in AMV group (and resets counters) if the current prompt is not protected. Note that if prompts within the AMV group are protected but the current prompt is not, 2 will still work.
3INSERTinserts blank line at WC_Mv% in AMV group (and resets counters) if the current prompt is not protected. Note that if prompts within the AMV group are protected but the current prompt is not, 3 will still work.
4CHANGEDused to tell the system that the number of elements in the AMV group has been changed and thus resets counters regardless of protection status.
5CHANGED ALLused to tell the system that the number of elements in other AMV groups has been changed and thus resets counters for all AMV groups regardless of protection status.

Note that because this variable relies upon there being a current AMV group, it is only meaningful to try to set it within the context of an AMV group (other than in the case of WC_Amv_Action% = 5). To force the system to recognise that WC_Amv_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 for full details):-

Setting WC_Reset% to 4 will run the Pre Prompt logic followed by the Perpetual logic and, if WC_Amv_Action% and WC_Reset% are not changed, will take action. Setting WC_Reset% to 5 will run the Pre Prompt logic and if WC_Amv_Action% and WC_Reset% are not changed will take action.

Setting WC_Reset% to 4 will run the Perpetual logic and if WC_Amv_Action% and WC_Reset% are not changed will take action. Setting WC_Reset% to 5 will just take the action.

Setting WC_Reset% to 2 or 3 will run Post logic followed by the Perpetual logic and, if WC_Amv_Action% and WC_Reset% are not changed, will take action. Setting WC_Reset% to 4 will run Perpetual logic and if WC_Amv_Action% and WC_Reset% are not changed will take action. Setting WC_Reset% to 5 will just take the action.

No action necessary. Will run Post logic then Perpetual logic and, if WC_Amv_Action% is not changed, will take action.

Post

No action necessary. Will run Perpetual logic and, if WC_Amv_Action% is not changed, will take action. If WC_Reset% is set to 5 the Perpetual logic will not be run but the action will be taken.

Setting WC_Reset% to a number between 1 and 5 will reprompt for the information. If the Edit logic does not then WC_Reset% WC_Amv_Action% or WC_Reset% the following will occur. If WC_Reset% was set to 1 2 or 3 it will run Post logic followed by the Perpetual logic and, if WC_Amv_Action% and WC_Reset% are not changed, will take action. If WC_Reset% was set to 4 it will run Perpetual logic and, if WC_Amv_Action% and WC_Reset% are not changed, will take action. If WC_Reset% were set to 5 it will just take the action.

Setting WC_Reset% to 2 or 3 will run Post logic followed by the Perpetual logic and, if WC_Amv_Action% and WC_Reset% are not changed, will take action. Setting WC_Reset% to 4 will run Perpetual logic and, if WC_Amv_Action% and WC_Reset% are not changed, will take action. Setting WC_Reset% to 5 will just take the action.

(Volume 2, Issue 9, Page 8)

  • tips/revmedia/v2i9a7.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1