Skip to content

Instantly share code, notes, and snippets.

@tparton42
Last active December 18, 2015 11:58
Show Gist options
  • Save tparton42/5779105 to your computer and use it in GitHub Desktop.
Save tparton42/5779105 to your computer and use it in GitHub Desktop.
ColdFusion Example: Mixed case structure variable names
<!--- Create initial recordset --->
<cfset variables.structElementTest = structNew() />
<!--- Artist 1 --->
<cfset structElementTest.band1 = "MUSE" />
<cfset structElementTest["band1_website"] = "www.muse.mu" />
<!--- Artist 2 --->
<cfset structElementTest["band2"] = "Radiohead" />
<!--- Mixed case --->
<cfset structElementTest["BaNd2_website"] = "www.radoihead.com" />
<!--- Dump the results --->
<cfdump var="#variables.structElementTest#" label="Structure Element Test" expand="true">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment