Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenSaveDialog: show two or more file types at once
#1
instead of:

Code:
Copy      Help
str s
    if OpenSaveDialog(0 s "WAV Files[]*.WAV[]MP3 Files[]*.MP3" "" &idir)= 'C'
        end

which requires user to select if they want to see wav or mp3 files, can both types be displayed at the same time?

Thanks!

Steve
#2
Use semicolon, like in example in OpenSaveDialog help.
#3
That was easy, thanks...

BTW, I did look at the help page (f1 with cursor on OSD) and read the page but did not find any reference/explanation of this, and also searched the forum for any examples or explanations and came up with nothing as well...

Believe me, I much prefer figure things out on my own than have to ask.

Thanks again,

Steve
#4
Probably I added these examples later. Almost remember.

Code:
Copy      Help
;EXAMPLES
str s
if OpenSaveDialog(0 s "Text files[]*.txt[]Image files[]*.bmp;*.gif[]All Files[]*.*[]")
,out s

ARRAY(str) a; int i
if OpenSaveDialog(0 0 "" "" 0 "" 0 a)
,for(i 0 a.len) out a[i]


Forum Jump:


Users browsing this thread: 2 Guest(s)