RestoreDefaultPreference

Introduced

v4.0

Categories

file

Description

Restores the default values for a preference or for all preferences in a category. A category is a set of preferences on the same subject grouped together in a node under the Preferences object located under the Application.

Scripting Syntax

RestoreDefaultPreference( PreferenceName );

Parameters

Parameter Type Description
PreferenceName String The preference to restore or the category. For a preference the category must be specified (category.preference). The categories can be found under the Preferences node.

Examples

1. VBScript Example

' This will restore to default all preferences in the data management category
RestoreDefaultPreference "data_management"

2. VBScript Example

' This will restore only this preference
RestoreDefaultPreference "data_management.projects_auto_import_enable"

See Also

ImportPreferences ExportPreferences Preferences.RestoreDefault