Try outputting like this:

<cfoutput>
#yourQuery["columnname(1)"][1]#
<cfoutput>

That should take care of the dodgy column names.

Ade

-----Original Message-----
From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]
Sent: 23 February 2005 20:24
To: CF-Talk
Subject: Problems with Parentheses


I've got a little problem.

I have columns in a query result set that are being returned with a
parenthesis in the column name, i.e. columnname(1).  Weird, I know,
but there isn't anything I can do about it.  The second issue is that
due to the very bad ODBC support for this datasource that is providing
the data, I have to do this in CF5.

What I am trying to do is reassign that value to a different variable
name, i.e.:

<cfset columnname_1 = columnname(1)>

The problem is, it throws an error: 

The symbol you have provided (imemo) is not the name of a function

I also tried using evaluate(), i.e. evaluate(columname(1)) but that
made no difference.  Any ideas on how I can reassign a variable that
has parentheses in it?

Thanks

Pete
-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196177
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to