If I have a field on a table that is blank, with this code have a problem?
Since there is nothing in the field, will this have a problem?

// Get the text from a field
static void getText( FieldPtr field, VoidPtr precord, Word offset )
{
        CharPtr         pfield; // CH.5 Pointer to field text

        // CH.5 Get the text pointer
        pfield = FldGetTextPtr( field );
        
        // CH.5 Copy it
        DmWrite( precord, offset, pfield, StrLen( pfield ) );
        
        // CH.5 We're done
        return;
}

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