It should search in my earlier created documents folder in my app.
There are some files stored, and i want the User to find them with this search option.
Here is my code:
Code: Select all
on openField
if the text of me is "Nach Profilen suchen" then
set the textColor of me to "black"
put empty into me
end if
end openField
on closeField
if the text of me is empty then
set the textColor of me to 127,127,127
put "Nach Profilen suchen" into me
end if
end closeField
on exitField
closeField
end exitField
on textChanged
put the text of me into tsearch
set the defaultFolder to specialFolderPath("documents")
put the files into zwischenSpeicher
filter zwischenSpeicher with "*(&tsearch)"
put zwischenSpeicher into field "ergebnisse"
end textChanged
There i specify the search function.
Is there a mistake? Because it wont work like that.
Thanks for your help,
Urosch