PassoloApp.SelectFile

Calls a dialog where the user can select a file

Syntax

Expression.SelectFile(Path as String, Open as Boolean, Filter as Variant, Title as Variant) as Boolean

Expression Required. Object of type PassoloApp

Path Returns the path of the selected file

Open Set to True to use the "File Open" dialog. Set to False to open the "File Save As" dialog.

Filter optional, The filter string, e.g. "TextFiles(*.txt)|*.txt|All Files(*.*)|*.*||"

Title optional, The caption for the dialog box

Example

Sub Main
    Dim path As String
    PSL.SelectFile(path, True,,"Please select a file")
    PSL.Output "The selected file is at " & path
End Sub