MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 48

Dreamweaver api reference
Table of Contents

Advertisement

int GetNotesKeyCount()
Description
This function gets the number of key/value pairs in the specified Design Notes file.
Arguments
FileHandle noteHandle
The
noteHandle
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
The
noteHandle
The
keyBufArray[64]
The
keyArrayMaxLen
returns, indicating the maximum number of items in the key buffer array.
Returns
A Boolean value:
true
argument receives the key names.
keyBufArray
Example
The following code prints the key names and values of all the keys in the Design Notes file
that are associated with the welcome.html file:
typedef char[64] InfoKey;
FileHandle noteHandle = OpenNotesFile("file:///c|/sites/avocado8/¬
iwjs/welcome.html");
if (noteHandle > 0){
int keyCount = GetNotesKeyCount(noteHandle);
if (keyCount <= 0)
return;
InfoKey* keys = new InfoKey[keyCount];
BOOL succeeded = GetNotesKeys(noteHandle, keys, keyCount);
48
The Design Notes API
argument is the file handle that the
argument is the file handle that
argument is the buffer array where the keys are stored.
argument is the integer that
indicates the operation is successful;
OpenNotesFile()
returns.
OpenNotesFile()
GetNotesKeyCount(noteHandle)
otherwise. The
false
function returns.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents