My idea goes a little further and gives awesome control.
Label loop
Edit using firstform ..........
If vBtnFlag = 'Quit' then
Goto done
Endif
If vBtnFlag 'SecondForm' then
Run similar code module for second form
endif
Goto loop
Label Done
Return
When the second form code exits you are taken right back to the first form.
With care these modules can be used to drill down as deep as you want and come
back cleanly to each previous form.
Each form can have many button which among other this set the flag and close
the form.
Just make sure to handle the flag for each possible value.
Dennis McGrath
________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of
[email protected]
Sent: Monday, November 30, 2009 11:09 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: saving data in form to table
Yes, if you have that eep code in the SECOND form, then it will close the
second form and return you back to the first form. That's not what I
suggested. Below is the code I suggested. You don't do anything special
in the second form. The eep that opens up the second form will have code
that sets the variable and then does a closewindow.
Karen
The eep code that calls up the second form
EDIT USING SecondForm
-- this code happens after you have exited the second form and want to go back
to the first form
SET VAR vFromSecond = 'yes'
CLOSEWINDOW -- this closes the first form
RETURN
KAREN
Tried this and it is not working, just pops me back into the original
form.
SAVEROW
set var vBtnFlag = 'form2'
CLOSEWINDOW
RETURN