home *** CD-ROM | disk | FTP | other *** search
- VERSION 1.0 CLASS
- BEGIN
- MultiUse = -1 'True
- END
- Attribute VB_Name = "RunClass"
- Attribute VB_Creatable = True
- Attribute VB_Exposed = True
- Option Explicit
-
- Private dlg As New dlgRun
-
-
- Public Property Get CommandLine() As Variant
- Attribute CommandLine.VB_Description = "Returns the command line last chosen by the dialog's user."
- CommandLine = dlg.CommandLine
- End Property
-
- Public Function Execute() As Variant
- Attribute Execute.VB_Description = "Executes the command line chosen by the user."
- Dim varHolder As Variant
- varHolder = dlg.Execute
- If VarType(varHolder) = vbError Then
- Execute = False
- Else
- Execute = varHolder
- End If
- End Function
-
- Public Function Run() As Variant
- Attribute Run.VB_Description = "Displays the Run Dialog for user interaction."
- Run = dlg.Display
- End Function
-
- Private Sub Class_Initialize()
- Load dlg
- End Sub
-
- Private Sub Class_Terminate()
- Unload dlg
- Set dlg = Nothing
- End Sub
-