• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Structures > Structures Defined

Structures Defined

Like arrays, structures are complex variables capable of holding multiple values simultaneously. One of the big differences between structures and arrays is that arrays are ordered, whereas structures are not. Another major difference is that while arrays are indexed, structures are accessed by a key. A key is more flexible than an array index because it can be any combination of numbers, letters, or special characters.

When to Use Structures

Almost any ColdFusion task could be accomplished without structures, but the programming logic would not be as readable or concise. Structures can improve your code by allowing you to group related data cleanly and easily.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint