netserf
10-06-2004, 06:33 PM
Opps! Got so carried away with singing the praises of the videos I forgot to ask my question. I want to use the setScrollPos function; however, I was wondering if there was a way to seach the text file for a particular string value (for instance a paragraph heading) and then set the scroll position based on the found string. The problem I have with setting the scroll position based on a line number stems from having to reprogram the entire paragraph object each time the text file changes and lines are added or subtracted. If the scroll position was based on a string value (HEADING) it would not matter if content was added or subtracted fromt the file. Is this possible?