About Arrays
117
ColdFusion dynamic 2D array
A ColdFusion 2D array is actually a one-dimensional array that contains a series of
additional 1D arrays. Each of the arrays that make up a row can expand and contract
independently of any other column.
The following terms will help you understand subsequent discussions of ColdFusion
arrays:
•
Array dimension
The relative complexity of the array structure.
•
Index
The position of an element in a dimension, ordinarily surrounded by
square brackets: my1Darray[1], my2Darray[1][1], my3Darray[1][1][1].
•
Array element
Data stored in an array index.
The syntax
my2darray[1][3]="Paul"
is the same as saying ’My2dArray is a
two-dimensional array and the value of the array element index [1][3] is "Paul".’
Dynamic arrays expand to accept data you add to them and contract as you remove
data from them.
Summary of Contents for COLDFUSION 5-DEVELOPING
Page 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Page 58: ...38 Chapter 3 Querying a Database ...
Page 134: ...114 Chapter 7 Updating Your Database ...
Page 210: ...190 Chapter 10 Reusing Code ...
Page 232: ...212 Chapter 11 Preventing and Handling Errors ...
Page 238: ...218 Chapter 12 Using the Application Framework ...
Page 262: ...242 Chapter 12 Using the Application Framework ...
Page 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Page 320: ...300 Chapter 15 Indexing and Searching Data ...
Page 336: ...316 Chapter 16 Sending and Receiving E mail ...
Page 374: ...354 Chapter 18 Interacting with Remote Servers ...