I removed the MemHandleFree(gHandle); and now I have a new error. Somehow the value is 
not coming across as I had intended to to the other form.

Error:

Writer's Edge (1.0) called SysFatalAlert with the message: "StringMgr.c, Line:67, NULL 
string passed".

The code where this is contained is the following:

static Boolean frmCalendar_cmdCancel_OnEnter(EventPtr event)
{
        // Insert code for cmdCancel
        extern char gFormValue;
        FrmGotoForm(gFormValue);
        return true;
}

I am trying to pull back the value "frmOverview" that was copied in the previous form 
code:

char* gFormValue;
static MemPtr gPointer;
static MemHandle gHandle;

static Boolean frmOverview_pbgStoryDate_OnSelect(EventPtr event)
{
        // Insert code for pbgStoryDate

    gHandle = MemHandleNew(1000);

        gPointer = MemHandleLock(gHandle); 
        StrCopy(gPointer,"frmOverview");
        StrCopy(gFormValue,gPointer);
        FrmPopupForm(frmCalendar);
        return true;
}

HELP!!!


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

Reply via email to