SaveFileDialog.setCreatePrompt

Overview | Methods | This Package | All Packages

SaveFileDialog.setCreatePrompt

Sets a boolean value indicating whether the dialog box prompts the user for permission to create a file if the user specifies a file that does not exist.

Syntax

public final void setCreatePrompt( boolean value )

Parameters

value

Set to true if the dialog box prompts the user before creating a file if the user specifies a file name that does not exist; set to false if the dialog box automatically creates the new file without prompting the user for permission. The default value is false. If the user chooses to create the file, the dialog box closes and the function returns the specified name; otherwise, the dialog box remains open. The validateNames property must also be set to true for the user to be prompted for permission.

Remarks

For a code example using this method, see the SaveFileDialog control topic.

See Also   getCreatePrompt