MSI Factory 2.3

Dialog.FileBrowse

Dialog.FileBrowse

This is the first topic This is the last topic  

Dialog.FileBrowse

This is the first topic This is the last topic  

OverviewExamples

table Dialog.FileBrowse (

boolean FileOpen,

string Title,

string DefaultFolder,

string FileFilters = "All Files (*.*)|*.*|",

string Filename = "",

string FileExtension = "",

boolean MultipleSelect = false,

boolean FileMustExist = false )

Example 1

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."

Example 2

-- 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