JSBool JS_ValueToDouble()
Usage
JSBool JS_ValueToDouble(JSContext *cx, jsval v, double *dp);
Description
Method; extracts a function argument from a
possible), and passes the converted value back to the caller.
Arguments
JSContext *cx
•
The
argument is the opaque
cx
•
The
argument is the
v
•
The
argument is a pointer to an 8-byte double. This function stores the converted value
dp
in
.
*dp
Returns
A Boolean value:
JSBool JS_ValueToBoolean()
Usage
JSBool JS_ValueToBoolean(JSContext *cx, jsval v, JSBool *bp);
Description
Method; extracts a function argument from a
possible), and passes the converted value back to the caller.
Arguments
JSContext *cx
•
The
argument is the opaque
cx
•
The
argument is the
v
•
The
argument is a pointer to a
bp
value in
.
*bp
Returns
A Boolean value:
,
,
jsval v
double *dp
JSContext
structure from which the double is to be extracted.
jsval
indicates success;
JS_TRUE
,
,
jsval v
JSBool *bp
JSContext
structure from which the Boolean value is to be extracted.
jsval
JSBool
indicates success;
JS_TRUE
structure, converts it to a double (if
jsval
pointer that passed to the JavaScript function.
indicates failure.
JS_FALSE
structure, converts it to a Boolean value (if
jsval
pointer that passes to the JavaScript function.
Boolean value. This function stores the converted
indicates failure.
JS_FALSE
The C-level API
379
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?