> So I guess CF doesn't support case-sensitive keys in a 
> structure. For example, given the following code:
> 
> test = StructNew();
> test.a = 5;
> test.A = 10;
> 
> I would have hoped that 2 keys would have been made, "a" and 
> "A", but instead only 1 key is made, and has a value of 10. 
> Is there anyway to have CF use case-sensitive keys so that I 
> could do something like the above to get 2 keys?

You can have CF remember the case of your key names using array notation:

<cfset test["a"] = "whatever">

However, if I recall correctly, these keys aren't really case-sensitive, in
that test["A"] would overwrite an existing test["a"].

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195835
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to