Dialog.FileBrowse |
|
|
|
Dialog.FileBrowse |
|
|
|
|
||
OverviewExamples
table Dialog.FileBrowse ( |
string FileFilters = "All Files (*.*)|*.*|", |
files = Dialog.FileBrowse(true, "Open File", _SourceDrive, "Text File (*.txt)|*.txt|All Files(*.*)|*.*|", "", "", false, false);
Prompts the user to select a single text file from the drive that the installer was run, and stores the path to the file they select in a table named "files."
-- Display a single-selection file browse dialog
result = Dialog.FileBrowse(true, "Load File", _TempFolder, "Microsoft Word Document (*.doc)|*.doc|All Files (*.*)|*.*|", "", "", false, true);
-- If CANCEL was not chosen, then let's get the file path
if (result[1] ~= "CANCEL") then
Dialog.Message("You chose the following file", result[1]);
end
Prompts the user to select a single Word document file (.doc) browsing from their Temporary folder, and stores the path to the file they select in a table named "result." If the cancel button was not chosen, a dialog message is displayed showing the file path that is stored in the table.
See also: Related Actions
Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us