Results 1 to 9 of 9

Thread: Common Dialogs > Filters

  1. #1

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I know how to use the .filter property for single extensions, but how can I make a filter with multiple extensions (like .exe, .dll at the same time with one filter)

    I've tried .filter = "All supported files|*.exe,*.dll"

    But this didn't work.. Anyone Ideas?
    Thanks in advance!

    Jop

  2. #2
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    Try the following format

    Code:
    .Filter = "Executables (*.exe)|*.exe|Com Files (*.com)|*.com"

  3. #3

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I'm sorry, but I think you didn't got my point
    I want to use both at the same time. Like winamp does when saving/opening a playlist. It uses all the available playlist extensions.
    Thanks for your time anyway!
    Any other people with suggestions?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I haven't tested it but try to separate the extensions with ;
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308
    Hi.

    dlg.Filter="All Files(*.*)|*.*|Program Files (*.exe)|*.exe|Text Files(*.txt)|*.txt"
    dlg.Flags=cdlOFNAllowMultiselect + cdlOFFileMustExist + cdlOFNExplorer + cdlOFNLongNames

  6. #6

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Thanks Kendaman!
    It worked..
    Happy vb-ing!

    Jop

  7. #7
    Addicted Member
    Join Date
    Feb 2000
    Location
    London, UK
    Posts
    145
    If you want to be able to see all executable files
    (like *.exe and *.com) input the following code in filters:
    cmd1.Filter = "Executable files (*.exe, *.com)|.exe;*.com"

    I don't know if that is what you wanted, but it might be useful.

    Pentax
    Wilhelm Tunemyr,
    Swede in London

    [email protected]

    "Dort, wo man Bücher verbrennt, verbrennt man am Ende auch Menschen"
    Heinrich Heine (1797-1856)

    Pravda vítezi!
    (Truth prevails!)

  8. #8
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Thats Kedaman not Kendaman! Hehe, Glad you appreciate my aid
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  9. #9

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    *OOPS!*
    sorry
    Thanx for your help indeed!

    Jop

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width