I have a locked field that responds to a mouseUp message by returning the clickText and the clickChunk so I know what word was clicked and where the word is (char 10 to 20 of field 1, for example). Knowing this information, how do I programmatically replace that word with another of my choosing in my script?
Example:
Field 1 contains: The quick brown fox.
I click on the word "brown".
I put the clickChunk into a variable named whereFrom.
I know what I want to replace that word with (let's say "green").
If I use
Code: Select all
put "green" into whereFrom
Obviously, I'm missing a line of code but I'm having trouble finding this topic in the documentation. Any help would be appreciated.
Thanks,
Barry