delphi - Why don't the open and save dialogs show files matching the selected filter? -


i want open , save dialogs display xml files. have definition:

// save dialog dlg := tsavedialog.create(nil); dlg.options := [ofoverwriteprompt]; dlg.title := 'seleccione la ubicación del archivo'; dlg.filter := 'xml | *.xml | todo | *.*'; dlg.defaultext := 'xml'; dlg.execute(); // open dialog dlg := topendialog.create(self); dlg.title := 'seleccione la ubicación del archivo'; dlg.filter := 'xml | *.xml | todo | *.*'; dlg.defaultext := 'xml'; dlg.execute(); 

but doesn't show xml files. show xml files in path, need choose "todo" (*.*) filter. why doesn't show files when xml filter selected?

remove spaces around extension. dialog trying filter "*.xml " files, there's none. refer documentation examples.


Comments

Popular posts from this blog

Using 'OR' and 'AND' in SQL Server -

python - Finding intersection between ellipse and a line -

c++ - NetBeans Remote Development with additional configuration -