Wednesday, February 27, 2008

GetFileOpenName revisted…

A while back I indicated that there was an undocumented feature of GetFileOpenName that allowed multiple file types per option. The good news is that Sybase updated the documentation to include it. The bad news is that in the process they removed the documentation on how to specify multiple options.

To get both, try this:

GetFileOpenName ( "Open File", pathname, filename, "TXT", "Graphic Files (*.bmp;*.gif;*.jpg;*.jpeg),*.bmp;*.gif;*.jpg;*.jpeg,All Types(*.*),*.*" )

You'll see two options in the dropdown, and the first has multiple file types. Note semicolons between the filetypes and commas between the sets of options (as well as between the description and the actual filter value).

No comments: