Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 05 MAR 2010 11:38:02AM Mark Watford wrote:

Using Arev 1.16, have very little documentation for Window_Common%.

Within a window from a shortcut key running a subroutine to put data within a multivalued field. The problem I am having is determining the prompt number where the cursor is located. I have tried WC_WI% to determine what prompt number I am at but I don't get the prompt number. I am not sure of the syntax for this Common. Also is that the correct Common to determine a prompt number in a multivalue field. What I need to do is to put the prompt number into a variable. Any help would be appreciated.

Thanks,

Mark


At 05 MAR 2010 04:24PM Mark Watford wrote:

When at a prompt checking the value of WC_WI% it returns 4 values 1 1 78 23 this happens at all prompts, this leads me to believe that either I have the wrong syntax or this window common doesn't work in AREV 1.16 or I don't understand the concept. Thanks for any help.

Mark


At 06 MAR 2010 09:09AM Dave Harmacek wrote:

Mark,

I'm suprised you know of WINDOW_COMMON% since that wasn't used until versions later than 1.16.

Then the common was defined in the include file as AREV.COMMON. WINDOW_COMMON% will have a few items that didn't exist in 1.16 but I expect it will work. See also WINDOW.CONSTANTS and LCPOSITIONS equates.

You mentioned this is a single, multi-valued prompt, not in a group. You can group multi-valued prompts together into a row-column set of prompts known as a "associated multi-valued group" (AMVG). The coding for this is much more complicated than for a single, multi-valued prompt.

The terminology is getting in your way:

In window processing the "prompt number" is is ordinal number of the prompt from the first to the last of the window and has nothing to do with the field number (FMC) or the position within a multi-valued prompt. I don't remember ever using WC_WI% and this common variable isn't needed to solve your problem.

WC_MV% will have the "value number" you are positioned at in a multi-valued prompt. See also @MV.

WC_SI% will have details of that prompt as documented in the equate LCPOSITIONS if you need the FMC and many other details.

WC_IS% will have the "value" just entered by the user. This can be different from @ANS when you have a AMVG of prompts.

AMVG coding will involve interactions of WINDOW_COMMON% WC_IS% WC_AMV_VARS% WC_CURR_AMV_GROUP% WC_DISPLAY_ACTION% and the equates found in WINDOW.CONSTANTS AMV.VARS, AMV.ACTION, DISPLAY.ACTION.

Good luck

Dave


At 06 MAR 2010 12:51PM Mark Watford wrote:

Thanks you have put me in the right direction, I failed to mention this is in a group. The books I have do not mention Window_common% but I have found it in the source code of some of the programs from the original programmer. I do have a later programming book which some but not all of the commands work.

Thanks Again,

Mark

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/604c53b3e7db78b1852576dd005b5fc7.txt
  • Last modified: 2023/12/28 07:39
  • by 127.0.0.1