Thanks Dawn and Javier.  I have struggled with this one for a few days.
Lesson learned: ask for help right away, not when you finally get frazzled!

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dawn Oakes
Sent: Wednesday, February 09, 2005 12:14 PM
To: RBG7-L Mailing List
Subject: [RBG7-L] - RE: closewindow problem

Claudine
I don't think you can start a new instance of the form from within form
itself.  I think because you haven't 'returned' (in your example, you're
running the ENTER USING form and the eep is waiting for the return to
close the window.)

I usually set some kind of variable flag on the button and my underlying
application checks the flag to see if it needs to start over at the
ENTER USING statement.   
SET VAR vcontinue = 'Y'
CLOSEWINDOW
RETURN

In my calling application I would have something like:
LABEL starthere
SET VAR vcontinue TEXT = NULL
EDIT USING FORMNAME
IF vcontinue = 'Y' THEN
  GOTO starthere
ENDIF

-----Original Message-----
From: Claudine Robbins [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 09, 2005 1:03 PM
To: RBG7-L Mailing List
Subject: [RBG7-L] - closewindow problem

I have (1) 'save/continue' and (2) 'save/exit' buttons.

On both I append my form temporary table data to the permanent tables. 
 
I end (1) with closewindow, enter using form and return.
It saves the data, opens a new instance of the form but doesn't close
the previous form...
  
I end (2) with closewindow return.
It works reliably, it saves all the data and returns to the underlying
application.

What am I missing?

Reply via email to