Jacque:
I implemented your script in the mine:
Code: Select all
on mouseUp
put empty into tZoekstring
lock screen
put empty into btn "foundbox"
show btn "foundbox"
ask "What word"
put it into tZoekstring
if tZoekstring is empty then
break
end if
doFind tZoekstring
unlock screen
end mouseUp
on doFind tZoekstring
repeat
find word tZoekstring in fld "comment"
if the result <> "" or the shiftkey is down then exit repeat
put the short name of this cd into tRef
if tRef is among the lines of tList then
exit repeat
else
put tRef & cr after tList
end if
end repeat
put tList into btn "foundbox"
end doFind
1. The drawn box around the word is sufficient
2. This box is created around the word in the fld "comment"of the first card only.
The names of the other cards are correct, but the word is not marked.
3. In the first try the matched words were colored yellow and a box was drawn.
These marks seem to be there forever. How can I get rid of them the next time
I go to that card.
4. Sometimes all flelds "comment" are totally underlined. This is not allowed! I had to correct it manually!
Please get me rid of the marks, even where I had caused an underlining that does not disappear...
Thanks
Rob