[Stackoverflow] [Progress OpenEdge ABL] cursor-offset on leave of fill-in

  • Thread starter Александр Овчинников
  • Start date
Status
Not open for further replies.
А

Александр Овчинников

Guest
openedge 12.2 win64 tty

I have a string of comma separated items that the user fills in manually. Elements have a certain structure, and the chk_store method checks each element for correctness of filling and returns the position of the beginning of the first incorrectly filled element. I want that at the on leave event, if there is an incorrectly filled element in the line, then the cursor will move to the position of the beginning of this element. The problem is that the cursor-offset is not set to the position I need when executing the code below.

Code:
ON LEAVE OF cfrm-store IN FRAME fmnu
DO:
   DO ON ERROR UNDO, RETURN NO-APPLY:
     ASSIGN cfrm-store.
     icfs = chk_store(cfrm-store).
     IF icfs = 0 THEN
        LEAVE.       
      SELF:CURSOR-OFFSET = icfs.           
      RETURN NO-APPLY.
   END.
END.

Continue reading...
 
Status
Not open for further replies.
Top