James,
Don't know if this will help, but take a look at the RenameQueryColumns
custom tag. Called like this:

<CF_RenameQueryColumns
                QUERY="getProductName"
                ACTION="MAKESAFE"
                NEWQUERY="getProductNameRenamed"
                MAKEUNIQUE="Yes"
                USEUNDERSCORE="No">

This will turn product-code into productcode. Works really well. I need
to use it constantly as I connect via ODBC to a Progress db that uses
hyphens all over the place.




-----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>

I'm outputting a field in a LDAP server that has a hyphen in its name 
and I can't 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
                                

Reply via email to