12 Replies Latest reply on Jul 9, 2007 1:52 PM by kglad

    Counting lines or carriage returns of input text

    Denise Hambrick
      Hi,
      I'm trying to make a printout of input text and need to be able to analyze the no of lines so I can know when to go to a new page.
      I know how to count the length of the string, but if the user puts carriage returns in, then I need to count a new line.

      Is there a way to find and count the carriage returns?

      Thanks,
      Denise