Adobe 38040334 API Reference - Page 257
dreamweaver.setPreferenceInt, key, new_value, dw.appVersion
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 257 highlights
DREAMWEAVER CS3 252 API Reference 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 section argument is a string that specifies the preferences category in which the option is set. If the category does not exist, Dreamweaver creates it. • The key argument is a string that specifies the category option that the function sets. If the option does not exist, Dreamweaver creates it. • The new_value argument is an integer that specifies the value of the category option. Returns A true value if successful; false otherwise. Example The following example sets the Snap Distance entry to the value of the variable snapDist in the My Extension 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 dw.appVersion for the correct version 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 section argument is a string that specifies the Preferences category in which the option is set. If the category does not exist, Dreamweaver creates it. • The key argument is a string that specifies the category option that the functions sets. If the category option does not exist, Dreamweaver creates it.
![](/manual_guide/products/adobe-38040334-api-reference-b593776/257.png)