I am pretty sure that if you have code after FrmReturnToForm, that code
will still be executed.

I usually use FrmGotoForm.
What happens is the FrmReturnToForm will get placed on the event queue, but
won't be processed until it return from your form handle event.

Hope that helps.
Jimmy





-----Original Message-----
From: Fawcett, Mitch [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 03, 1999 11:04 AM
To: 'PalmDevForum'
Subject: FrmReturnToForm


This is a simple question I'm sure but it's making me crazy.

If I have two form event handlers one for FormX and one for FormY.  FormX
opens FormY.  FormY does some things and then does a FrmReturnToForm making
FormX the active form again.  

My question is, what's the situation with the statements following the
FrmReturnToForm in the FormYHandler routine?  Does it make sense to have
anything following a FrmReturnToForm if processing is being transferred back
to the event handler for FormX? 


void FormXHandler (void)
{
   ... open FormY

}

void FormYHandler (void)
{
   ... some stuff
   FrmReturnToForm (ptrFormX)
   ... some more stuff

}



Reply via email to