ISDBApplication::CommonDialog

From MediaMonkey Wiki
Revision as of 22:34, 20 March 2007 by Jiri (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ISDBApplication::CommonDialog

Property Get CommonDialog As ISDBCommonDialog

No parameters

Property description

Returns SDBCommonDialog object that can be used then to show load/save file dialogs.

Example code

' Create common dialog and ask where to save the file
Dim dlg
Set dlg = SDB.CommonDialog
dlg.DefaultExt='mp3'
dlg.Filter=filter
dlg.Flags=cdlOFNOverwritePrompt + cdlOFNHideReadOnly
dlg.InitDir = iniF.StringValue( "Scripts", iniDirValue)
dlg.ShowSave

if Not dlg.Ok Then
  Exit Sub   ' if cancel was pressed, exit
End If

' Get the selected filename
fullfile = dlg.FileName