No, Actually U don't need to call     FrmEraseForm(frm) or   FrmDeleteForm
(frm).
When U give a call  to FrmGotoForm, frmCloseEvent will trigger for the
previous form and frmOpenEvent for the specified form.

Prasanna Kumar V S
Software Engineer
Yashaa Infotech Private Limited
#14,10th Main,HAL 3rd Stage
Bangalore -560075
Email:[EMAIL PROTECTED]
www.yashaa.com
----------------------------------------------
To make mistakes is human;
to stumble is commonplace;
to be able to laugh at yourself is maturity.
----------------------------------------------
----- Original Message -----
From: "Chris Tutty" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, March 21, 2001 5:10 PM
Subject: Is FrmDeleteForm needed before FrmGotoForm?


> Hi,
>
> I'm working on some code that uses the following sequence
> for every button that switches forms:
>
>     (within case of event type switch):
>       FrmEraseForm (frm);
>       FrmDeleteForm (frm);
>       FrmGotoForm (NextForm);
>       break;
>
> I've just been calling FrmGotoForm without hassle for some
> time (since it's documented as doing the erase and delete) and
> the above code made me nervous so I hunted through
> the archives and got some opinion that suggested that this was
> appropriate because PalmOS doesn't always action the
> FrmDeleteForm.
>
> What worries me is that if FrmDeleteForm releases the form's
> memory what happens when this event loop gets the close
> event that the FrmGotoForm will trigger?  What happens if the
> code for that close event checks a control property?
>
> Although this obviously runs I'm getting a confused message on
> whether it's dangerous, required or somewhere in between.
>
> Chris Tutty
>
>
>
> --
> 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/

Reply via email to