It's only on director help:
-----------------------
Syntax:
offset(stringExpression1, stringExpression2)
Description Function:
returns an integer indicating the position of the first character of
stringExpression1 in stringExpression2. This function returns 0 if
stringExpression1 is not found in stringExpression2. Lingo counts spaces as
characters in both strings.
On the Macintosh, the string comparison is not sensitive to case or
diacritical marks. For example, Lingo considers a and � to be the same
character on the Macintosh.
-----------------
on SearchAndReplace input, stringToFind, stringToInsert
output = ""
findLen = stringToFind.length - 1
repeat while input contains stringToFind
currOffset = offset(stringToFind, input)
output = output & input.char [1..currOffset]
delete the last char of output
output = output & stringToInsert
delete input.char [1.. (currOffset + findLen)]
end repeat
set output = output & input
return output
end
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of mitesh
Sent: Wednesday, September 12, 2001 6:57 AM
To: lingo
Subject: <lingo-l> Search engin
Hi firends,
I am creating search engin in director 8. I have created search engin
but some time it not work fine. it is search in text field. if i input
in search field more wrod then it hilite worg word. is there any easy
way or created example is there then help me how can i do this.
help me.
Thanks.
Mitesh
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]