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