Product Logo

CNS Menu

Dynamic Menus

Functions

CNSMenu_Folder_SelectWithDialog

NameCNSMenu_Folder_SelectWithDialog
Description

Presents the user with a standard select folder dialog and returns the path to the chosen folder.

Return TypeText
FormatCNSMenu_Folder_SelectWithDialog ( StartPath ; Prompt )
Optional Parameters
StartPath

The path to the folder to display when the dialog first opens.

Prompt

An optional prompt or message to display on the dialog.

Examples
Example 1

Displays a folder chooser dialog, and returns the path of the chosen folder.

CNSMenu_Folder_SelectWithDialog
Example 2

Displays a folder chooser dialog starting at "images" directory on Windows.

CNSMenu_Folder_SelectWithDialog ( "c:\images" )
Example 3

Displays a folder chooser dialog starting at "images" folder on Mac.

CNSMenu_Folder_SelectWithDialog ( "/Images/" )
Example 4

Displays a folder chooser with the prompt "Choose a folder...".

CNSMenu_Folder_SelectWithDialog ( "" ; "Choose a folder..." )