useful little tip

jbv jbv.silences at Club-Internet.fr
Sat May 14 08:35:56 EDT 2005


well, nothing really new, but let's say you have a sentence
featuring several words, and you need to know if the same
word W1 occurs more than once in that sentence.
    for instance : W1 W2 W3 W4 W5 W1 W6 W7

The following line is a very simple & fast way to know it :

if wordoffset(W1,myString,wordoffset(W1,myString)) > 0

of course, it also works with offset, itemoffset and lineoffset.

JB



More information about the use-livecode mailing list