Kbase P99824: How to run a child (non smart) window and from a parent (non smart) window and close it programmatic
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  15/04/2011 |
|
Status: Verified
GOAL:
How to run a child (non smart) window and from a parent (non smart) window and close it programmatically with 4GL?
GOAL:
How to close a window from another window?
FACT(s) (Environment):
Windows
Progress 8.x
Progress 9.x
OpenEdge 10.x
FIX:
When starting the child window, run it persistently from its parent window. For example:
DEFINE VARIABLE h_child AS HANDLE NO-UNDO.
RUN child.w PERSISTENT SET h_child.
Then the child window can be closed from its parent with:
IF VALID-HANDLE(h_child) THEN
DO:
APPLY "CLOSE" TO h_child.
h_child = ?.
END.