IBM®
Skip to main content
    Country/region select      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     

developerWorks  >  Lotus  >  Forums & community  >  Best Practice Makes Perfect

Best Practice Makes Perfect

A collaboration with Domino developers about how to do it and how to get it right in Domino

This information was missing from the help, and since it took me a while to find I decided to post it here.

The question is, when specifying the "filters" for a file-browsing dialog, how do you group multiple file types together under one heading? E.g. under the description "JPEG files" you want to include both "*.jpg" and "*.jpeg". The answer is, ";" (semicolon) can be used as a delimiter.

Also, don't forget the wildcard "?" which matches any single character, and use "*" as the matching pattern for "All files" to match files that don't have a "." in their names.

So for instance:

result = wksp.SaveFileDialog( False, "Select a file to paint your wall with", "GIF files|*.gif|JPEG files|*.jpg;*.jpeg|PNG files|*.png|WOWPaint files (*.WPx)|*.WP?|All image files|*.jpg;*.jpeg;*.bmp;*.gif;*.png|All files|*")

I've sent in a request to have this added to the product help. (BTW: anyone can submit help feedback by clicking the link at the bottom of each help page. This is what I do. It works.)

Andre Guirard | 9 March 2010 05:54:29 PM ET | Home, Plymouth, MN, USA | Comments (2)


 Comments

1) Untitled
Erik Brooks | 3/9/2010 9:23:29 PM

Cool Andre, thanks for sharing (and pointing out the help bit also, that's always good.)

2) Cool, Andre
Erik Brooks | 3/9/2010 9:27:26 PM

Thanks for that, definitely useful. Also thanks for mentioning the help bit, that's always helpful (no pun intended.) ;-)

 Add a Comment
Subject:
   
Name:
Comment:  (No HTML - Links will be converted if prefixed http://)
 
Remember Me?     Cancel

Search this blog 

Disclaimer 

    About IBM Privacy Contact