Jsobject *Js_Newarrayobject(); Long Js_Getarraylength() - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

Arguments
JSObject *obj
Typically, this argument is passed in and converted using the
Returns
A pointer to a null-terminated string. The caller should not free this string when it finishes.

JSObject *JS_NewArrayObject()

Description
This function creates a new object that contains an array of
Arguments
JSContext *cx
The
argument is the opaque
cx
The
argument is the number of elements that the array can hold.
length
The
argument is an optional pointer to the
v
value is not
null
the initial content of the array object is undefined and can be set using the
JS_SetElement()
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
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.
,
unsigned int length
JSContext
,
is an array that contains
v
function.
,
JSObject *obj
JSContext
JSVals
,
jsval *v
pointer that passes to the JavaScript function.
to be stored in the array. If the return
jsvals
elements. If the return value is
length
upon failure.
null
pointer that passes to the JavaScript function.
JS_ValueToObject()
.
The C-level API
function.
,
null
361

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents