Adobe 38040334 API Reference - Page 34
int GetNoteLength, int GetNotesKeyCount, BOOL GetNotesKeys, Example, Description, Arguments, Returns
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 34 highlights
DREAMWEAVER CS3 29 API Reference 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); } int GetNoteLength() Description This function gets the length of the value that is associated with the specified key. Arguments FileHandle noteHandle, const char keyName[64] • The noteHandle argument is the file handle that the OpenNotesFile() function returns. • The keyName[64] argument is a string that contains the name of the key. Returns An integer that represents the length of the value. Example See "BOOL GetNote()" on page 28. int GetNotesKeyCount() Description This function gets the number of key/value pairs in the specified Design Notes file. Arguments FileHandle noteHandle • The noteHandle argument is the file handle that the OpenNotesFile() function returns. Returns An integer that represents the number of key/value pairs in the Design Notes file. BOOL GetNotesKeys() Description This function gets a list of all the keys in a Design Notes file. Arguments FileHandle noteHandle, char* keyBufArray[64], int keyArrayMaxLen
![](/manual_guide/products/adobe-38040334-api-reference-b593776/34.png)