I am using the follow function to set an text to an Field But that always
return, is there anyone who can help me to solve it.

static void SetField( FormPtr frmP, unsigned short field_id, char *text )
{
    // Set the associated field's text
    FieldPtr fld = (FieldPtr)GetObjectPtr( frmP, field_id ) ;
    Handle h = FldGetTextHandle( fld );
    StrCopy( (CharPtr)MemHandleLock( h ), text );
    MemHandleUnlock( h );

    FldSetText( fld, h, 0, MemHandleSize( h ) );
    FldGrabFocus( fld );
    FldDrawField( fld );
}

Thank for help.




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