Chapter 4: ColdFusion Expressions: Operators and Other Constructs
Objects Used to Build ColdFusion Expressions
Type
Time values
Lists
Structures
Arrays
Description
You can directly enter a date-and-time object in any of the
following formats:
"October 30, 1999 02:34:12"
"October 30, 1999 2:34a"
"October 30, 1999 2:34am"
"October 30, 1999 02:34am"
"October 30, 1999 2am"
The time part of the object is accurate to the second.
Lists are a special kind of string, made up of elements
separated by delimiters.
You specify the allowable delimiters for a list by [HOW?] A
list can have more than one delimiting character. The
default delimiting character, used by all list processing
functions is a comma: "," . White space is not considered a
delimiter. However, when using lists where elements may
be separated by white space as well as other delimiters, be
sure to add the white space characters to the delimiters.
Delimiters before the first element and after the last
element are ignored.
The structure of lists is flat – that is, lists cannot be nested
into one another. Also, lists can contain no "empty"
elements. A list can be empty, however. The empty list is
equivalent to the empty string "".
You can use structures to create and maintain key-value
pairs, to refer to related string values as a unit rather than
individually, or to create associative arrays.
For more information about structures, see Developing Web
Applications with ColdFusion.
Arrays are tables of objects or data that can be indexed.
Although the ArrayNew function only supports creating up
to three-dimensional arrays, there is no limit on array size or
maximum dimension.
Elements stored in an array are referenced as follows:
<CFSET myarray[1][2]=Now()>
For more information about arrays, see Developing Web
Applications with ColdFusion.
573
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers