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?
Finding the line where a word appears
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Wonderful, works a treat!TEDennis wrote:Try this -- all in one statement:
Code: Select all
put line lineOffset("WordToFind", theThesaurus) of theThesaurus into field "Synonyms"