Cold Fusion data Types
Submitted by Depot Kite on Fri, 2006-02-17 11:08.
There are only 3 Advanced data Types supported by Coldfusion.
1. Lists: Group together related items
2. Arrays: Store multiple values in a single variable
3. Structures: Store data within data (this is the most powerful in Coldfusion)
List Example:
<cfset fruit ="apple, orange, chicken">
Array Example: Note coldfusion does support 3d arrays
<cfset names arraynew(2)>
<cfset names[1][1]="troy">
<cfset names[1][2]="hahn">
<cfset names[2][1]="john">
<cfset names[2][2]="doe">
<cfoutput>
The first name in the array #names[1][1]# #names[1][2]#
</cfoutput>
Recent comments
6 years 7 weeks ago
8 years 30 weeks ago
10 years 18 weeks ago
11 years 40 weeks ago
12 years 14 weeks ago
12 years 14 weeks ago
12 years 17 weeks ago
12 years 18 weeks ago
12 years 18 weeks ago
12 years 20 weeks ago