filesearch with multiple search patterns

Discussion in 'Questions (Windows Mobile)' started by kohle, Feb 2, 2009.

  1. kohle

    kohle Active Member Licensed User

    Is it possible to use filesearch with multiple searchpatterns,
    like *.gif *.jpg

    When I use *.*, it returns also hidden files. why ?
  2. Erel

    Erel Administrator Staff Member Licensed User

    FileSearch adds files to an ArrayList.
    So you can call it multiple times with different patterns:
    [FONT=Times New Roman][COLOR=#010101][COLOR=#010101][FONT=Times New Roman]FileSearch (alFiles, "\My Documents", "*.jpg")
    FONT][/COLOR][/COLOR][/FONT][FONT=Times New Roman][COLOR=#010101][COLOR=#010101][FONT=Times New Roman]FileSearch (alFiles, "\My Documents", "*.gif")[/FONT][/COLOR][/COLOR][/FONT]
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice