void SetTriggerText(UInt16 ownerForm, UInt16 trigger, char *text)
{
MemHandle h;
Char *dest;
if( text == NULL )
text = "";
h = MemHandleNew( StrLen( text ) + 1 );
dest = MemHandleLock( h );
StrCopy(dest, text);
CtlSetLabel(GetObjectPtr(ownerForm, trigger), dest);
MemHandleUnlock( h );
}...and how do I keep it from doing so?
/morten
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
