I tried setting the handle to null in previous versions (several of them)
of the code I posted but I took it out.  My understanding is that if the
field has nothing in it there will be a null pointer. Right?  I put the
FldSetTextHandle(fldP, NULL) back in but only when there is a pointer.
Actually, there never is because the fields in question are never updated a
second time.  The only time the fields are drawn is right after the form is
loaded.  Is my understanding of this correct?  Anyway I put it back in last
night both with a test for a null pointer and without and it still doesn't
work.

        I wonder if I'm loading the forms correctly.  I adhered to the method in
one of the examples.

        The second form - the one on which I can't refresh is loaded like so.  It
starts with a menu option on the main form.

                case menuEvent:
//
                        return MainFormDoCommand(eventP->data.menu.itemID);
                        break;

Then it goes here:

// Process the option selections on the main form
static Boolean MainFormDoCommand(Word command)
{
        Boolean handled = false;

        switch (command)
                {
                case MainOptionsAboutBusyBeaver:
                        MenuEraseStatus (0);
                        FrmGotoForm(AboutBusyBeaverForm);
                        handled = true;
                        break;
                case MainOptionsLogonLogoff:
                        MenuEraseStatus (0);
                        FrmGotoForm(LogonLogoffForm);
                        handled = true;
                        break;
-->             case MainOptionsSignageCount:
                        MenuEraseStatus (0);
                        FrmGotoForm(EnterKeyForm);
                        handled = true;
                        break;

                }
        return handled;
}

Then here:

                case frmOpenEvent:
                        frmP = FrmGetActiveForm();
                        FrmDrawForm ( frmP);
                        handled = true;
                        break;
                }
                return handled;

        Is there anything I should be doing different to open the form?

        I can do a lot of things without incident before after the form opens
before I try to update that field.  I open a database and do a binary search
then move several strings around.  As soon as I try to display a string it
blows up on the FldSetTextHandle instruction.  If I don't try to update a
field on the second form I can move back and forth between the first and
second form.  Each time the first form is loaded it puts text in eight
fields.

regards,

Dave Mottorn



-- 
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