Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenSaveDialog: defExt - default extension
#1
How do I set the default extension to: *.txt, if the filter is:

"exe files[]*.exe[]txt files[]*.txt[]All Files[]*.*[]"

Macro Macro25
Code:
Copy      Help
str defExt
str s
if OpenSaveDialog(0 s "exe files[]*.exe[]txt files[]*.txt[]All Files[]*.*[]" defExt )
,out s

I tried the following, but it still keeps the .exe as default extension

Macro Macro25
Code:
Copy      Help
defExt="txt"
defExt=".txt"
defExt="*.txt"
defExt="txt files"

I assume that normally only folders and .exe are displayed when the opensave dialog is opened, if the below filter is used:
Code:
Copy      Help
"exe files[]*.exe[]txt files[]*.txt[]All Files[]*.*[]"
And with 'defExt' I can set another extension to be shown when the opensave dialog is opened.
Alternatively I could set the the 'txt' extension first in the filter, but I was wondering how to use 'defExt'


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)