Structures Are Simple

ColdFusion structures are special data types that store sets of data, think of them as variables that contain variables. And structures are really easy to use too. CFML come with a whole set of structure manipulation functions (they all start with Struct) but you actually do not really need most of them. In fact, the only function that is absolutely required is StructNew() which is used to create a new structure. Once created you can use standard tags to set structure members (for example, ), standard naming conventions to access structure members (for example, #contact.FirstName#), and standard to display structure members (for example, #contact.FirstName#). (Applies to: ColdFusion 4 (or later))

Leave a Reply