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 07 DEC 1998 02:03:16PM DEBBIE wrote:

PART # IS A MULTIVALUE FIELD; ALT F1 CALLS A SUBROUTINE; BUT IF THEY DON'T LEAVE THE PART # FIELD; THE SUBROUTINE WON'T SEE THE NEW PART/S ENTERED ANY SUGGESTIONS

I'VE TRIED

TO FORCE THE CURSOR TO THE NEXT FIELD (WON'T GO TILL PROCESSING DONE)


At 07 DEC 1998 05:10PM Tony Lillyman wrote:

I assume you are using an AMV with Code in and Description etc in ., etc

Are you using JOINED Fields in Bound Window ?

The easiest way I update IS is after your subroutine (AF1) processes

to programmatically …

Set @ANS=IS ; Results in Display of what you have in IS

Set IS.ORIG=' ; Allows you to test changed IS (IS#IS.ORIG)

Set @Record=IS ; Sets @Record=IS

Then process @record and Update , yourself

Then set RESET=4

Then Set DisplayAction=5

Screen should then redisplay your updated Codes and processing will occur as if they typed in IS and pressed Enter

Hope this helps

Tony


At 07 DEC 1998 08:28PM Michael Slack wrote:

I assume your AF1 code is looking at record column for that position. If so you may want to use WC_IS% instead of @RECORD (I'm assuming a multivalue prompt). If the AF1 can be called from anywere within the window then you'll need to add some code at the very begining to determine if you are in that particular prompt or not. If you are, then fill a variable with WC_IS%, otherwise fill it with @RECORD. To determine which prompt you are in, I'd suggest looking at the WC_SI% for the current prompt and comparing it to the expected dictionary field number. If the dictionary field number is the same as the current prompt then you are in the prompt and need to use WC_IS% otherwise use the data from the @RECORD.

I hope this helps,

Michael Slack


At 09 DEC 1998 02:43AM Larry Wilson - TARDIS Systems, Inc. wrote:

I think the best check is using wc_mv% (or MV in pre 3.x) and using the WINDOW.CONSTANTS to get the mv window parms from wc_amv_vars%.

This also enables you to add, move, delete, etc. from a MV window without all the RESET, CHANGE, etc. variables. All you need is

to set wc_display_action% to REDISPLAY.ALL$ when you're done. It's LOTS less code, more secure and relies less on the version of AREV you're running.

tardis@earthlink.net

303-680-8555

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/42b27478189b59af852566d30068ab6f.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1