file.getFolderDialog

Syntax file.getFolderDialog (prompt, addr)

Params prompt is a string to be displayed in the dialog.

addr is the address of an object database cell in which the path name of the selected folder is stored unless the user cancels the operation.

Action Prompts the user to select a folder.

Returns True if the user clicked on Folder, false if the user cancels the action. Also places the user's response into the Object Database at location addr unless the user cancels the dialog, in which case addr is left unchanged.

Examples file.getFolderDialog ("Choose a folder", @x); return (x)

   » "C:\\Program Files\\Frontier\\backups\\"


file.getFolderDialog ("Which folder?", @scratchpad.x);
return (scratchpad.x)

   » System:System Folder:Extensions:

Places the string in scratchpad.x and displays it as well.

See Also file.getFileDialog

file.putFileDialog

file.getDiskDialog

Discuss