gcanyon at inspiredlogic.com
Wed Dec 12 11:20:00 EST 2001
At 4:08 PM -0800 12/11/01, Ben C. Fetherston, Jr. wrote:
>I have been attempting to create a script in a database stack that will
>automatically change particular key letter combinations into a word or
>phrase within a field when the field is closed. I have a script that works
>great with the "replace" command.
>However, the replace command will not "find whole" words, but will replace
>the letters within another word. The key letter combinations all have a
>space at the end, so the words that get changed that I don't want changed
>are the ones that end in the particular key letter combinations.
>I have tried to use the "find whole" command in a script, but can't seem to
>find a command to change the selectedText.
>I have tried to use the replaceText function, but I can't seem to avoid the
>same error message, even though I have entered the command the same as it
>appears in the Dictionary.
Take a look at the wholeMatches property and the wordOffset function.
More information about the use-livecode