Looks like CFMX handles structures differently than CF.  There are 2 different ways to set a structure’s key:

 

<cfset stTest = StructNew()>

<cfset stTest.Key1 = “”>

<cfset stTest[“Key2”] = “”>

 

In CF5 and earlier versions, the key would be returned as Upper Case text, regardless of which approach you used to set the structure’s keys.  In MX, however, the key is returned in whatever case you use for the key name when using the second approach above.  This is important if you use XSL stylesheets to render data sourced from a structure.  I spent the better part of a day trying to figure out why my stylesheets are not rendering in MX.  Hope this saves you some time.

 

 

Thanks -

 

Tom Schreck

817-252-4900

[EMAIL PROTECTED]

 

I have not failed.  I've found 10,000 ways that won't work.

 

- Thomas Edison

 

Reply via email to