Hi there. I'm new in this progress stuff but i created a simple window with the AppBuilder en now trying to create a dynamic button.
The code in the procedure is the next :
CREATE BUTTON hButton01 ASSIGN
ROW = 5
COLUMN = 20
LABEL = "My Dynamic Button"
FRAME = FRAME DEFAULT-FRAME:HANDLE
SENSITIVE = TRUE
VISIBLE = TRUE
TRIGGERS:
ON CHOOSE
DO:
MESSAGE "You pressed my dynamic button.".
END.
END TRIGGERS.
MESSAGE "Dynamic Button created.".
WAIT-FOR WINDOW-CLOSE OF CURRENT-WINDOW.
END PROCEDURE.
All works fine, but when i close the application by clicking the cross of the window, he gives a 4122 error "Invalid widget handle used in WAIT-FOR statement. WAIT-FOR terminated. (4122)".
I hope i posted it in the right forum and if u guys could help me with this simple problem, thx alot
The code in the procedure is the next :
CREATE BUTTON hButton01 ASSIGN
ROW = 5
COLUMN = 20
LABEL = "My Dynamic Button"
FRAME = FRAME DEFAULT-FRAME:HANDLE
SENSITIVE = TRUE
VISIBLE = TRUE
TRIGGERS:
ON CHOOSE
DO:
MESSAGE "You pressed my dynamic button.".
END.
END TRIGGERS.
MESSAGE "Dynamic Button created.".
WAIT-FOR WINDOW-CLOSE OF CURRENT-WINDOW.
END PROCEDURE.
All works fine, but when i close the application by clicking the cross of the window, he gives a 4122 error "Invalid widget handle used in WAIT-FOR statement. WAIT-FOR terminated. (4122)".
I hope i posted it in the right forum and if u guys could help me with this simple problem, thx alot