> > FrmDeleteForm is generally used following FrmInitForm, FrmDoDialog,
> > FrmPopupForm, and FrmSetActive.  When you are just displaying a dialog
> > (i.e. FrmPopupForm) it is usually easiest to use FrmReturnToForm.  Also,
> > note that FrmGotoForm sends a frmCloseEvent to the current form to
> > clean-up for you.
> 
> Thanks, I guess I'm lucky.  I always use FrmReturnToForm when I use
> FrmPopupForm that seems obvious and do use FrmDeleteForm with
> FrmDoDialog but did not really understand why it was necessary.
> 
> But that brings up another question.  I open my main form with a
> FrmGotoForm(frmMain).  But no where do I close or delete the main
> form, even when the program ends.
> 
> Must I perform a FrmDeleteFrm upon closing the app?

Mike, 

If you don't handel the frmCloseEvent, Palm OS cleans up for you. 
According
to the information on frmCloseEvent in the Palm OS SDK Reference, which
can
be found on-line at:

  http://www.palm.com/devzone/docs/palmos/EventRef.html#609539


  frmCloseEvent

  The form routines FrmGotoForm and FrmCloseAllForms send this event.
FrmGotoForm
  sends a frmCloseEvent to the currently active form; FrmCloseAllForms
sends a
  frmCloseEvent to all forms an application has loaded into memory. If
an
  application doesn't intercept this event, the routine FrmHandleEvent
erases the
  specified form and releases any memory allocated for it. 

Paul . . . 

-- 
 ___________________________________________________________________
  dpw Designs                    http://www.pe.net/firm/dpw-designs
                                 mailto:[EMAIL PROTECTED]

Reply via email to