[Gambas-user] Obtaining desired file extension

T Lee Davidson t.lee.davidson at gmail.com
Tue Feb 9 04:43:53 CET 2021


On 2/8/21 8:21 PM, martin cristia wrote:
> In the Dialog.SaveFile() user is asked for a filename, given a few extension options, i.e:
> 
> Dialog.Filter = ["*.dxf", "DXF Drawing exchange 2010", "*.dwg", "DWG AutoCAD Drawing file 2010"]
> If Dialog.SaveFile() Then Return ' cancel saving
> f = Dialog.Path
> 
> then user types "my saved file" , sets extension in ComboBox, but Dialog.Path comes without it; and AFAIK there is no way to get 
> that , or I'm not seeing it????

I also do not see how to get that. It would be good if the file extension of the currently selected filter was automatically 
appended to the basename of the file in the 'File name' box, and automatically changed if the filter is changed.


-- 
Lee


More information about the User mailing list