> There is probably an easy answer for this, but I can't seem 
> to solve it...
> 
> I have a structure that comes from an external system. It 
> was originally XML, but I have converted it to a structure 
> using CF_SOXML.
> 
> I want to access a value in the structure...
> 
>     #calinit.icalendar["ICAL"].X-NSCP-WCAP-SESSION-ID#
> 
> However, since the key name has "-" characters in it, 
> ColdFusion errors out with "Invalid Parser". Is there any 
> way for me to display this variable? When I run CFDUMP, 
> everything displays fine, but I can't access the variable
> individually.

If your structure key has a character which is invalid in a CF variable
name, use associative array syntax:

calinit.icalendar["ICAL"]["X-NSCP-WCAP-SESSION-ID"]

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to