Do you have some links with common string parsing routines that can help me with this? I am new to C and Palm.. any samples would help. Thanks
Tim A -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Avilla, Dane Sent: Wednesday, December 12, 2001 2:00 PM To: Palm Developer Forum Subject: RE: Lines on a Fld >From what you wrote, it sounds like each line of text is ended by a '\n' character. In that case, consider using FldGetTextPtr to grab a pointer to the text in the field, then just count in X number of '\n' characters until you find the line you want, then copy the text between that '\n' and the next '\n' char (or the end of the string). Cheers, -DGA > I have a Field with multiple lines on it, and I need to > grab the text on > each individual line, one at a time. Can someone help me with > a routine to > do this? Note: I add each line with this code: > > Char *newline = "\n"; > Char scandata[30]; > > FldInsert(fldP, scandata, StrLen(scandata)); > FldInsert(fldP, newline, StrLen(newline)); > > Thanks in advance! > > Tim A -- 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/
