MSI Factory 2.3

Dialog.FolderBrowse

Dialog.FolderBrowse

This is the first topic This is the last topic  

Dialog.FolderBrowse

This is the first topic This is the last topic  

OverviewExamples

string Dialog.FolderBrowse (

string Prompt,

string DefaultFolder )

Example 1

folder_path = Dialog.FolderBrowse("Select Folder", _SourceDrive);

Prompts the user to select a single folder from the "source drive" and stores the path to the selected folder in a variable named "folder_path."

Example 2

-- Display a folder browse dialog

storage_path = Dialog.FolderBrowse("Store Files In", _TempFolder);

 

-- If CANCEL was not chosen, then let's get the folder path

if (storage_path ~= "CANCEL") then

   Dialog.Message("You chose the following folder", storage_path);

end

Asks the user what path to store files in, letting them browse for a folder starting from the temporary folder. The resulting path is stored in storage_path. The second block of code is a check to see if the user pressed the cancel button. If they didn't, a dialog message is displaying showing the folder that was selected.

Note: _TempFolder is a built-in variable that contains the path to the user's temporary folder.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us