Adobe 38040334 - Dreamweaver CS3 User Manual page 257

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

dreamweaver.setPreferenceInt()
Availability
Dreamweaver MX.
Description
Lets you set an integer preference setting for an extension. This setting is stored with Dreamweaver preferences when
Dreamweaver is not running.
Arguments
section, key, new_value
• The
argument is a string that specifies the preferences category in which the option is set. If the category
section
does not exist, Dreamweaver creates it.
• The
argument is a string that specifies the category option that the function sets. If the option does not exist,
key
Dreamweaver creates it.
• The
argument is an integer that specifies the value of the category option.
new_value
Returns
A
value if successful;
true
Example
The following example sets the Snap Distance entry to the value of the variable
category of Preferences:
var snapDist = getSnapDistance();
if(snapDist > 0)
{
dreamweaver.setPreferenceInt("My Extension", "Snap Distance", snapDist);
}
dreamweaver.setPreferenceString()
Availability
Dreamweaver MX.
Note: To access the preferences for sites, you must have version 7.0.1. Check
before accessing site information.
Description
Lets you write a string preference setting for an extension. This setting is stored with Dreamweaver preferences when
Dreamweaver is not running.
Arguments
section, key, new_value
• The
argument is a string that specifies the Preferences category in which the option is set. If the category
section
does not exist, Dreamweaver creates it.
• The
argument is a string that specifies the category option that the functions sets. If the category option does
key
not exist, Dreamweaver creates it.
otherwise.
false
in the My Extension
snapDist
for the correct version
dw.appVersion
DREAMWEAVER CS3
252
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents