Geoff,
I'm not sure I follow what you say you are doing.  What you need to do is 
have a global variable for the value you want to pass back from your Popup 
form, this global should not be used as a Field handle.  Copy the value out 
of the field on the close of your popup form.  In your frmUpdate event in 
your calling forms even handler take care of assigning the new value to the 
field on the current form and redrawing it.  You should have save behind 
marked in your Popup form.  Also you want to be using FrmReturnToForm not 
FrmGotoForm when you close your popup form.

Richard

At 01:26 PM 4/10/2002 -0500, you wrote:
>I am still stuck and would appreciate some advice here.  This is what I'm
>trying right now:
>
>I set a global handle from the calling form's field handle (leaving the
>handle in place in the calling field), and then call
>
>     FrmPopupForm(Popup);
>
>The popup works fine - the helper function allows the entry of text.  I then
>release the
>handle from the popup form field (it is still in globals) and return to the
>calling form via
>
>     FrmReturnToForm(0);
>
>The Palm doc is unclear about the functionality of FrmReturnToForm,
>especially the stuff about "Save Behind" and so-forth.  However, Save Behind
>would be of no use to me, because the field's contents have been changed,
>and therefore must be 'refreshed' anyway.
>
>I tried adding
>
>      FrmUpdateForm(0, frmRedrawUpdateCode);
>
>and capturing this code in the MainFormHandleEvent, but interestingly,
>
>     #1.  The event gets called twice, and
>     #2.  It doesn't refresh the field.
>
>I tried looping through the fields calling FldDrawField(i) and that didn't
>do it either.
>
>What am I missing?
>
>Geoff
>
>
>"Geoff Thompson" <[EMAIL PROTECTED]> wrote in message
>news:83283@palm-dev-forum...
> >
> > The Popup form is a helper form that helps edit field contents on the
> > calling form.  After the user is 'done' with the helper, they click a
>"done"
> > button, which triggers the FrmReturnToForm(0).
> >
> > Can I 'refresh' the calling form prior to the FrmReturnToForm(0), or is
> > there an event I can trap somewhere to let me know the Popup form has
> > closed, so I need to refresh the updated field?
> >
> > Thanks,
> >
> > Geoff Thompson
> > [EMAIL PROTECTED]
> >
> >
> >
> >
>
>
>
>--
>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