No but you can create your own variable scope structure such as <cfset myVariables=StructNew()> <cfset myVariables['my-name']='Joe'> <cfoutput>#myVariables['my-name']#</cfoutput>
and it works exactly the same way. But you have to set the value into the structure you can do a <cfset my-name='Joe'> -----Original Message----- From: James Blaha [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:14 PM To: CF-Talk Subject: Re: Hyphen in a variable name? Bryan, Thanks, does this work in CF 5? Regards, JB Bryan F. Hogan wrote: >If your using MX > ><cfset Variabes['my-name']='Jim'> ><cfoutput>#Variabes['my-name']#</cfoutput> > >-----Original Message----- >From: James Blaha [mailto:[EMAIL PROTECTED] >Sent: Friday, June 13, 2003 11:49 AM >To: CF-Talk >Subject: Hyphen in a variable name? > > >Hello All: > >Does anyone know how to use a hyphen in a variable name for a cfoutput? > >For example: ><cfset my-name = "Jim"> ><cfoutput>#my-name#</cfoutput> > >Im outputting a field in a LDAP server that has a hyphen in its name >and I cant seem to output it in ColdFusion. > >Regards, >James Blaha > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

