Am Sam, 2002-07-06 um 09.10 schrieb fawaz bokhari: Hi,
> "static char * connurl;" > > "connurl = FldGetTextPtr(field);" > "FrmReturnToForm(0);" > > In the first Form Handle Event I want to access that > global variable: > "FrmCustomAlert(OutputAlert , connurl , NULL , NULL);" connurl points to the text of the field, but the whole form including the field has been removed when you did the FrmReturnToForm. So connurl points just somewhere in memory. You need to either detach the field's content from the field, or you could use StrCopy to make a copy of the content: connurl = MemPtrNew(StrLen(FldGetTextPtr(field))+1); StrCopy(connurl, FldGetTextPtr(field)); Don't forget to MemFree(connurl) later if necessary. With kind regards, Daniel Seifert -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
