Extending Coldfusion Pages With Cfml Scripting - Adobe 38043740 - ColdFusion Standard - Mac Development Manual

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
The CFML Programming Language
Function
Duplicate
IsStruct
StructAppend
StructClear
StructCopy
StructCount
StructDelete
StructFind
StructFindKey
StructFindValue
StructGet
StructInsert
StructIsEmpty
StructKeyArray
StructKeyExists
StructKeyList
StructNew
StructSort
StructUpdate

Extending ColdFusion Pages with CFML Scripting

Adobe ColdFusion offers a server-side scripting language, CFScript, that provides ColdFusion functionality in script
syntax. This JavaScript-like language gives developers the same control flow as ColdFusion, but without tags. You can
also use CFScript to write user-defined functions that you can use anywhere that a ColdFusion expression is allowed.
About CFScript
CFScript is a language within a language. It is a scripting language that is like JavaScript but is simpler to use. Also,
unlike JavaScript, CFScript only runs on the ColdFusion server; it does not run on the client system. CFScript code can
use all the ColdFusion functions and expressions, and has access to all ColdFusion variables that are available its scope.
Description
Returns a complete copy of the structure.
Returns True if the specified variable is a ColdFusion structure or a Java object that implements the
java.util.Map interface.
Appends one structure to another.
Removes all data from the specified structure.
Returns a "shallow" copy of the structure. All embedded objects are references to the objects in the original
structure. The
function has replaced this function for most purposes.
Duplicate
Returns the number of keys in the specified structure.
Removes the specified item from the specified structure.
Returns the value associated with the specified key in the specified structure. This function is redundant
with accessing structure elements using associative array notation.
Searches through a structure for the specified key name and returns an array containing data on the found
key or keys.
Searches through a structure for the specified simple data value (for example, a string or number) and
returns an array containing information on the value location in the structure.
Returns a reference to a substructure contained in a structure at the specified path. This function is
redundant with using direct reference to a structure. If you accidentally use this function on a variable that
is not a structure, it replaces the value with an empty structure.
Inserts the specified key-value pair into the specified structure. Unlike a direct assignment statement, this
function generates an error by default if the specified key exists in the structure.
Indicates whether the specified structure contains data. Returns True if the structure contains no data, and
False if it does contain data.
Returns an array of keys in the specified structure.
Returns True if the specified key is in the specified structure. You can use this function in place of the
IsDefined
function to check for the existence of variables in scopes that are available as structures.
Returns a list of keys in the specified structure.
Returns a new structure.
Returns an array containing the key names of a structure in the order determined by the sort criteria.
Updates the specified key with the specified value. Unlike a direct assignment statement, this function
generates an error if the structure or key does not exist.
Last updated 1/20/2012
106

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents