Search Object Problem

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • 1) I added a File Object to the frame, so that I could get the MyDocuments address from it.
    2) Added a string to the frame to get the first filename that met the conditions.
    3) Set the search directory to be MyDocuments (from the File Object)
    4) Set the search wildcard to "*result*.*" (replace result with the word you want in the filename)
    5) Added an event:
    ......Upon pressing SpaceBar
    ...........Find text "*.*"
    6) Added a second event:
    ......Always
    ...........Set alterable string of string$ to Search filename$
    (Use the get result filename action of the Search object)

    This found me a file with result in the filename :)

    I don't know why you need to set the wildcards in a separate action, but you do!

  • Sarah, thanks for your help with this. However, I should have been more clear in my original post. What I am trying to do is find a word within a known file, not text which is part of the filename. Does simple search make this possible (finding text within a document), or do I have to use indexed search?
    Regards, Ken.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!