Finding the line where a word appears
Posted: Sun Jun 15, 2008 11:15 pm
Just getting used to the text processing in Rev (thanks for the last bit of help!)
So, I've gone a bit crazy and downloaded a thesaurus (I'm playing with one of the example text editors from RevOnline). The thesaurus is just a comma seperated list with <CR><LF> between each line of similar words.
What I want to do is search for a word and then put the entire line that the word appears in into a field (i.e. the synonyms). So, if I search for a word, how do I return what line that word appears in?
I guess it's something like :
-search for the word
-put line number into a variable (x)
-put line x into fld "synonyms"
Am I close?
So, I've gone a bit crazy and downloaded a thesaurus (I'm playing with one of the example text editors from RevOnline). The thesaurus is just a comma seperated list with <CR><LF> between each line of similar words.
What I want to do is search for a word and then put the entire line that the word appears in into a field (i.e. the synonyms). So, if I search for a word, how do I return what line that word appears in?
I guess it's something like :
-search for the word
-put line number into a variable (x)
-put line x into fld "synonyms"
Am I close?