BOOL GetNote()

Description

This function gets the value of the specified key in the specified Design Notes file.

Arguments

FileHandle noteHandle, const char keyName[64], char* valueBuf, int valueBufLength

Returns

A Boolean value: true indicates the operation is successful; false otherwise. The valueBuf argument receives the value of the key.

Example

The following code gets the value of the comments key in the Design Notes file that is associated with the welcome.html file:

FileHandle noteHandle = OpenNotesFile("file:///c|/sites/avocado8/¬
iwjs/welcome.html");
if(noteHandle > 0){
   int valueLength = GetNoteLength( noteHandle, "comments");
   char* valueBuffer = new char[valueLength + 1]; 
   GetNote(noteHandle, "comments", valueBuffer, valueLength + 1);
   printf("Comments: %s",valueBuffer);
   CloseNotesFile(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_des19.htm