ToScript

Creates a JavaScript expression that assigns the value of a variable to a JavaScript variable. This function can convert strings, numbers, arrays, structures, and queries to JavaScript syntax that defines equivalent variables and values.

Returns: string

Usage

ToScript( cfvar, javascriptvar [, outputformat [, ASFormat ] ] )

Arguments

Argument Description Default
cfvar
(any, required)

A variable.

javascriptvar
(string, required)

A string that specifies the name of the JavaScript variable that the ToScript function creates.

outputformat
(boolean, optional)

A Boolean value that determines whether to create WDDX (JavaScript) or ActionScript style output for structures and queries. Default: true

true

ASFormat
(boolean, optional)

A Boolean value that specifies whether to use ActionScript shortcuts in the script. Default: false

Examples

There are currently no examples for this function.

See also