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

QTIPS - Positioning Cursors in AMV fields

Mike Nourse of MN2 generously points out that it can sometimes be desirable to position the input cursor on a specific row/prompt intersection in an AMV after altering the contents of the AMV. Unfortunately, setting WC_AMV_ACTION% to 4 (to redisplay the contents), always sets WC_MV_NEXT% back to 1, resulting in the cursor returning to line 1 of the AMV.

Mike points out that putting an "@" in front of WC_MV_NEXT% instructs the window processor to leave WC_MV_NEXT% alone during a reset rather than setting it to 1. Thus, on an edit pattern it becomes possible to


0001        WC_WI_NEXT%   = NEXT_FIELD
0002        WC_MV_NEXT%   = "@" : WC_MV%
0003        WC_AMV_ACTION%     = 4
0004        WC_RESET%          = 4

(Volume 3, Issue 5, Page 10)
Pixel
Pixel Footer R1 C1 Pixel
Pixel
Pixel
Pixel