Adobe 38040334 - Dreamweaver CS3 User Manual page 359

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
argument is an optional pointer to the
v
an array that contains
length
undefined and can be set using the
Returns
A pointer to a new array object or the value
long JS_GetArrayLength()
Description
Given a pointer to an array object, this function gets the number of elements in the array.
Arguments
,
JSContext *cx
JSObject *obj
• The
argument is the opaque
cx
• The
argument is a pointer to an array object.
obj
Returns
The number of elements in the array or -1 upon failure.
JSBool JS_GetElement()
Description
This function reads a single element of an array object.
Arguments
,
JSContext *cx
JSObject *obj
• The
argument is the opaque
cx
• The
argument is a pointer to an array object.
obj
• The
argument is an integer index into the array. The first element is
index
(
).
length - 1
• The
argument is a pointer to a
v
Returns
A Boolean value:
JS_TRUE
JSBool JS_SetElement()
Description
This function writes a single element of an array object.
Arguments
JSContext *cx, JSObject *obj, unsigned int index, jsval *v
• The
argument is the opaque
cx
• The
argument is a pointer to an array object.
obj
jsvals
elements. If the return value is
JS_SetElement()
upon failure.
null
pointer that passes to the JavaScript function.
JSContext
,
unsigned int index
pointer that passes to the JavaScript function.
JSContext
where the contents of the
jsval
indicates success;
JS_FALSE
pointer that passes to the JavaScript function.
JSContext
to be stored in the array. If the return value is not
, the initial content of the array object is
null
function.
,
jsval *v
index
structure in the array should be copied.
JSVal
indicates failure.
DREAMWEAVER CS3
Extending Dreamweaver
null
0, and the last element is
index
353
,
is
v

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents