Open-File-Dialog-[Multi-Choices]
Command Description
Pop up an Open File dialog box, in which multiple files can be selected
Command Prototype
arrRet = Dialog.OpenFiles(sDefaultPath,sFilter,sTitle)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
sDefaultPath | True | path | '''C:\Users''' | Locate to default directory when dialog displays. Locate to the directory of last operation if null |
sFilter | True | string | "Text Documents (*.txt) | *.txt |
sTitle | True | string | "Laiye RPA" | Dialog title |
return
arrRet,The variable used to save the output of the command.
Demo
Dim arrRet
arrRet = Dialog.OpenFiles('''C:\Users''',"Text document (txt, log)|*.txt;*.log|Any file|*","This is the dialog title" )
TracePrint(arrRet)
/**
The output result is the file path selected by the user to open
For example:
R arrRet = [
"C:\\uibot\\test_5.6.0\\log\\20220125181237.log",
"C:\\uibot\\test_5.6.0\\log\\20220125181620.log",
"C:\\uibot\\test_5.6.0\\log\\20220125182007.log",
"C:\\uibot\\test_5.6.0\\log\\20220126135615.log"
]
*/