Thanks guys. That's exactly what I was looking for.
Mitch
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron
> Ardiri
> Sent: Saturday, February 10, 2001 12:57 PM
> To: Palm Developer Forum
> Subject: Re: Returning to a function after a form action
>
>
> > >So basically what I am asking is... what is the best way to
> branch out of a
> > >function... open a form... do something with the form... close
> the form...
> > >and have processing return right back to the function I started out in?
> >
> > Sounds like a job for a dialog to me...see FrmDoDialog in the
> > documentation. It just goes away and handles the dialog (has its own
> > event loop), then when the user taps a button it gets rid of the
> > dialog form and returns.
>
> it also halts the program where it stands.. your event loop doesn't
> get called, so it is in fact a true MODAL dialog :) its like this:
>
> // code 1 here
> FrmDoDialog();
> // code 2 here
>
> code 1 is executed, the dialog is popped up, and it handles its own
> stuff until you hit a button on the dialog. when the dialog closes,
> execution continues onto the code 2 stuff..
>
> if you want it to re-initialize your data/forms etc, then, you
> would need to close/open/close/re-open forms to clean everything
> up.. the dialog is a perfect example of doing it easily.
>
> // az
> [EMAIL PROTECTED]
> http://www.ardiri.com/ <--- free games!
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/