Control

Common Dialog ActiveX control - version 5.0

File

COMDLG32.OCX

Panel control name

FileOpen1

Script

Code

Display About box

FileOpen1.AboutBox

Open File

FileOpen1.DialogTitle = &(1:)
FileOpen1.DefaultExt = &(2:)
FileOpen1.FileName = &(3:)
FileOpen1.InitDir = &(4:)
FileOpen1.Filter = &(5:)
FileOpen1.FilterIndex = &(6:)
FileOpen1.ShowOpen
&(3:) = FileOpen1.FileName
Parameters:
&(1:)=Character - the title to give the dialog panel.
&(2:)=Character - the default extension of the file to open
&(3:)=Character - the file name to open. Optional
&(4:)=Character - the initial directory to open
&(5:)=Character - formatted filter string
&(6:)=Integer - the default filter from the filter string

Save File

FileOpen1.DialogTitle = &(1:)
FileOpen1.DefaultExt = &(2:)
FileOpen1.FileName = &(3:)
FileOpen1.InitDir = &(4:)
FileOpen1.Filter = &(5:)
FileOpen1.FilterIndex = &(6:)
FileOpen1.ShowSave
Parameters:
&(1:)=Character - the title to give the dialog panel.
&(2:)=Character - the default extension of the file to save
&(3:)=Character - the file name to save.
&(4:)=Character - the initial directory to open
&(5:)=Character - formatted filter string
&(6:)=Integer - the default filter from the filter string