Widget windows help for a Noob!

bmoore

New Member
I am the new guy here and I am playing around with some old programs in Progress 9.1E.

My problem is, (besides being fresh to all this)
that I have the main program, call it "main.w"
and then I have another window that opens from the menu of main.w

My question is, what do I need to tell it when it closes to keep the main.w window open. As of now, when I close the child window, it exits out of the whole thing completely.

Here is what I think it is, but it's not.

__________________________________________________________
MESSAGE "Are you sure you wish to quit?"
VIEW-AS ALERT-BOX QUESTION BUTTONS OK-CANCEL UPDATE vlQuit.

IF NOT vlQuit THEN RETURN NO-APPLY.

RUN destroyObject.
IF ERROR-STATUS:ERROR THEN
RETURN NO-APPLY.

&IF DEFINED(AppBuilder_IS_RUNNING) EQ 0 &THEN

QUIT.

&ENDIF

END.
____________________________________________________

Should I tell it to RUN main.w (but it is already running)
I tried various different approaches, and each time it exits out completely.

Also, I am looking at it in the Procedure editor, is this something that should be defined in the Appbuilder?

Please help me find my way
 
Run the other window persistent, giving it it's own memory cache.
RUN whatEver.w PERSISTENT SET handleVar.
Then main.w can operate independently without closing, whatEver.w can function simultabiously, main.w also has a handle to talk to whatEver.w if it needs to. Hope this helps
 
Yes, I got it. Thank you all for the help.
I never compiled, and It still had the outdated .r files, that was part of the problem. But ultimately I just commented out the QUIT statement.

I guess part of learning is messing up and breaking things.:blush:
 
Back
Top