Check to make sure that FrmPopupForm is correlating with FrmReturnToForm and
FrmGotoForm is correlating with FrmGotoForm. Use popup form's when the draw
behind option of the form is checked and go to when it is not (I can never
remember which is modal and which is modeless).
To pop up a third form over top of the second, you can either have the OK
button pop up the form and when the third form is closed, it also closes the
second, or call a FrmUpdateForm for the first after closing the second and
have the update event pop up the third form.
Elia
-----Original Message-----
From: K2 Consultants, Inc. [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 03, 1999 10:39 AM
To: [EMAIL PROTECTED]
Subject: Form switching problems..
Hi,
I have an intermittent problem during the following scenario. Obviously
there is a wrong approach of some sort in switching the forms as I am doing.
Is there an idea why or better still - what is the best way to do this?
(Perhaps Forms 101 question - but can't get more help from the Frm
functions).
I am in a Form - say (currentView) and I open a small form to take the user
input using
FrmPopupForm(inputView);
(I am using FrmPopupForm because the input form is small - kind of like Find
input form),
When the user taps on OK of this form - it should actually go to a new form.
I have tried various ways but get errors in all approaches. Ideally I want
to go to the new form (newView) - In order to clean up any processing with
the currentView, I "return" to currentView and then follow it by a
FrmGotoForm(newView) to switch to the new one. This is given below: (Ignore
the SysTaskWait for now)
FrmReturnToForm(currentView);
// Try adding a delay...
SysTaskWait(60); // wait a second?
FrmGotoForm(newView);
I get *intermittently* an error which is connected with FrmReturnToForm
while processing (internally) FrmEraseForm(). Typically this happens on the
first usage - but not guaranteed. Happens with the release version of the
OS and not Debug. I have tried to put delay to see if the opening of the
new form has any impact on the processing related to the "return" to the old
form. But this does not help.
What is the best way to do this?
Thanks.
Sandeep Shah
K2