This function gets the value of the specified key in the specified Design Notes file.
FileHandlenoteHandle,const charkeyName[64],char*valueBuf,intvalueBufLength
noteHandle argument is the file handle that the OpenNotesFile() function returns.
keyName[64] argument is a string that contains the name of the key.
valueBuf argument is the buffer where the value is stored.
valueBufLength argument is the integer that GetNoteLength(noteHandle, keyName) returns, which indicates the maximum length of the value buffer.
A Boolean value: true indicates the operation is successful; false otherwise. The valueBuf argument receives the value of the key.
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