MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 47

Dreamweaver api reference
Table of Contents

Advertisement

The
keyName[64]
The
argument is the buffer where the value is stored.
valueBuf
The
valueBufLength
returns, which indicates the maximum length of the value buffer.
keyName)
Returns
A Boolean value:
true
argument receives the value of the key.
Example
The following code gets the value of the
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
The
keyName[64]
Returns
An integer that represents the length of the value.
Example
See
"BOOL GetNote()" on page
argument is a string that contains the name of the key.
argument is the integer that
indicates the operation is successful;
comments
argument is the file handle that the
argument is a string that contains the name of the key.
46.
GetNoteLength(noteHandle
otherwise. The
false
key in the Design Notes file that is
OpenNotesFile()
The Design Notes C API
,
valueBuf
function returns.
47

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?

This manual is also suitable for:

Dreamweaver 8

Table of Contents