A broad way to do it is

FrmReturnToForm(0);
FrmUpdateForm(0, 0);

This is only good if you don't mind updating your entire form. And you don't
have to remember any names or IDs. FrmReturnToForm is documented to set the
active form to its argument and accept 0 to mean "last loaded" form. Even
though FrmUpdateForm isn't documented to take 0 for a formID and infer
"current form", it works.

dave
-----------------------------------
David Tribble, Northrop Grumman IT
(808) 680-0384


-----Original Message-----
From: Chris Olson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 8:37 AM
To: Palm Developer Forum
Subject: Re: Forcing a Form Redraw after FrmReturnToForm()


What I do in this situation is right after the FrmReturnToForm, I call 
TblMarkTableInvalid.  Seems to work fine for me...

Chris Olson

Dan Dorton wrote:

>Hopefully this is an easy question, but it seems to be eluding me...
>
>I have a table on the main form.  I use FrmPopupForm() to open a form to
gather data for a new table item.  After the new item is added to the
database, the form returns with FrmReturnToForm(0), but the table is not
redrawn.  I have redraw code in the frmUpdateEvent, but this is not being
called.
>
>Is there an other even I can catch to force the redraw?  I didn't see any. 
>
>TIA,
>
>-  Dan  :D
>
>
>  
>




-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to