MMNotes.set()

Description

This function creates or updates one key/value pair in a Design Notes file.

Arguments

fileHandle, keyName, valueString

Returns

A Boolean value: true indicates the operation is successful; false otherwise.

Example

The following example opens the Design Notes file that is associated with a file in the dreamcentral site called peakhike99/index.html, adds a new key/value pair, changes the value of an existing key, and then closes the Design Notes file:

var noteHandle = MMNotes.open('file:///c|/sites/dreamcentral/
peakhike99/index.html',true);
if(noteHandle > 0){
   MMNotes.set(noteHandle,"Author","M. G. Miller");
   MMNotes.set(noteHandle,"Last Changed","August 28, 1999");
   MMNotes.close(noteHandle);
}

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/04_des15.htm