Previous Document Next Document
CorelScriptTools.GetFolder

Function GetFolder([InitFolder As String]) As String

Member of CorelScriptTools

The GetFolder method displays a Windows Choose Folder dialog box. The Choose Folder dialog box returns the folder and path a user chooses as a string.

Parameter
Definition
InitFolder
Specifies the default path and folder to display in the dialog box. If not specified, the active folder is used.

  • If the Cancel button is clicked, an empty string is returned.

Here is a code example:

NewFolder$ = GetFOLDER("D:\Corel60") 
SETCURRFOLDER = NewFolder$ 

The above example displays the following dialog box:

The selected folder is passed to the string variable NewFolder. The SetCurrFolder statement sets the current folder to the folder name passed to NewFolder.

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.