![MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference Download Page 330](http://html1.mh-extra.com/html/macromedia/dreamweaver-8-dreamweaver-api/dreamweaver-8-dreamweaver-api_reference_3332054330.webp)
330
Document
Arguments
section, key, default_value
■
The
section
argument is a string that specifies the preferences section that contains the
entry.
■
The
key
argument is a string that specifies the entry of the value to retrieve.
■
The
default_value
argument is the default value that Dreamweaver returns if it cannot
find the entry. This value must be an unsigned integer in the range 0 through 65,535 or a
signed integer in the range -32,768 through 32,767.
Returns
Integer value of the specified entry in the specified section or the default value if the function
does not find the entry. Returns 0 if the value of the specified entry is not an integer.
Example
The following example returns the integer value of the Snap Distance setting in the My
Extension section of Preferences. If there is no MyExtension section or no Snap Distance
entry, the function returns the specified default value of 0.
var snapDist; //default value if entry not found
snapDist = dreamweaver.getPreferenceInt("My Extension", "Snap Distance",
0);
dreamweaver.getPreferenceString()
Availability
Dreamweaver MX.
Description
Lets you retrieve a string preference setting that you stored for an extension.
Arguments
section, key, default_value
■
The
section
argument is a string that specifies the preferences section that contains the
entry.
■
The
key
argument is a string that specifies the value to retrieve.
■
The
default_value
argument is the default string value that Dreamweaver returns if it
cannot find the entry.
NO
T
E
To access the preferences for sites, you must have version 7.0.1. Check
dw.appVersion
for the correct version before accessing site information.
000_DW_API_Print.book Page 330 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...