Kay, in cases like that, it's worth knowing about the 'token' chunk. The docs give the lowdown...

Best,

Mark

On 12 Jan 2009, at 02:53, Kay C Lan wrote:

I don't know the reason why, but your conclusion would appear logical. All I know is that Richard Gaskin recommends when speed is of the essence always test various solutions to determine the fastest, so you seem to be on the
right track:-)

On a slightly different note, I would like to hilight a gotcha when working with the 'word' keyword in Rev. One may assume that in "Help, please?" word 1 is 'Help' and word 2 or word -1 is 'please', but this is not the case. As
fully explained in the Docs a word is whatever is between one or more
spaces, tabs, cr or quotes. So in the above case the words are 'Help,' and 'please?' ie including punctuation. Which of course is no good if you are
testing for an exact match to 'Help' or 'please'.

I had a script that scoured pages of text that appeared to randomly fail to find certain key terms. It was extremely rare and took ages to track down as it only occured when the key terms were followed by a punctuation mark and
therefore failed to match and trigger the desired script.

HTH someone.

On Sun, Jan 11, 2009 at 11:47 PM, jbv <jbv.silen...@club- internet.fr> wrote:

Hi list,

In the following loops :

   repeat for each line j in myVar
       repeat for each word w in last item of j
       end repeat
   end repeat

is "last item of j" evaluated every time the 'repeat for each word w"
loop runs ?

I'm asking, because when trying the following :

   repeat for each line j in myVar
       get last item of j
       repeat for each word w in it
       end repeat
   end repeat

it gets about 20% faster...

Thanks,
JB

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to