Skip to main content

[archive] Msg-Finish-Entry at version 6.0

  • June 17, 2012
  • 0 replies
  • 0 views

[Migrated content. Thread originally posted on 03 July 2003]

In a Grid, when we are in Entry Mode, leaving the cell, we want to move the cursor to the next cell.
We used (version 5.2) in Msg-Finish-Entry event :
MODIFY Form1-Gd-1, CURSOR-X ..., CURSOR-Y ...
We upgrade to version 6.0 and it?s not working properly.

e.g.
Cell X 1, Y 2 Value ="AA"
Cell X 2, Y 2 Value = spaces

Form1-Gd-1-Ev-Msg-Finish-Entry.
MOVE SPACES TO PRT DFT
MODIFY Form1-Gd-1, X 1, Y 2
INQUIRE Form1-Gd-1, CELL-DATA IN PRT (PRT = "AA")
MODIFY Form1-Gd-1, CURSOR-X 2, CURSOR-Y 2
MODIFY Form1-Gd-1, X 2, Y 2
INQUIRE Form1-Gd-1, CELL-DATA IN DFT (DFT = "AA" instead of spaces)
IF DFT = SPACES
MODIFY Form1-Gd-1, X 2, Y 2, CELL-DATA "BB"
END-IF.

As a result:
Cell X 1, Y 2 Value = "AA"
Cell X 2, Y 2 Value = "AA" instead of "BB"
If we place the "MODIFY Form1-Gd-1, CURSOR-X ..." at the end of routine it works, but it isn?t what we need.

In "User Interface Programming" chapter "5.10.2 Grid: Special Properties" quote:
CURSOR-X (numeric)
....
Note that you may MODIFY this property during a MSG-VALIDATE event to direct where the cursor should go after the user finishes an entry into a cell.
...
If you move the cursor in response to other events while the user is in entry mode, the results can be confusing.

We tried MSG-VALIDATE event, but it is activated when leaving grid.

0 replies

Be the first to reply!