is among the words AND find words
admin at FlexibleLearning.com
Wed Dec 21 15:00:29 EST 2011
An alternative approach:
Assuming that the phrase "now is the time, for all good men" is in fld 1,
then this button script....
put findWord(fld 1,"time")
function findWord pContent,pStr
if pStr is among the tokens of pContent then
return num of words of char 1 to offset(pStr,pContent) of pContent
else return 0
reurns 4 as expected. Similarly for 'time-bomb' and other variants.
More information about the Use-livecode