Should not, but I think you should check if you get the ptr successfully
(check if pfield is NULL)
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Rochester, Dean
Sent: Tuesday, February 13, 2001 10:15 AM
To: Palm Developer Forum
Subject: If the text field is empty...
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/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/