Re: Output columns from a query that have been formatted as 2 words

2011-11-07 Thread Torrent Girl
> > Leigh I tried your suggestion and it outputs the value of the > column: > > Name"]) />  >   > It should work fine under CF8/9 because query columns are arrays. What > is your CF version? Oh WAIT!! DUH!! I figured it out. That rocks!!! Thanks I think this is what I needed. Sorry, brain

Re: Output columns from a query that have been formatted as 2 words

2011-11-07 Thread Torrent Girl
> > Leigh I tried your suggestion and it outputs the value of the > column: > > Name"]) />  >   > It should work fine under CF8/9 because query columns are arrays. What > is your CF version? I am using CF9 but I don't understand what you are telling me to do. :)

Re: Output columns from a query that have been formatted as 2 words

2011-11-07 Thread Leigh
> Leigh I tried your suggestion and it outputs the value of the column: >     It should work fine under CF8/9 because query columns are arrays. What is your CF version? ~| Order the Adobe Coldfusion Anthology now! http://www.am

Re: Output columns from a query that have been formatted as 2 words

2011-11-07 Thread Leigh
> Add a new column to the QoQ?   Since you cannot use "First Name" in a QoQ, you create a new column with a valid name. Then use the new column name in your QoQ. -Leigh ~| Order the Adobe Coldfusion Anthology now! http://www.a

Re: Output columns from a query that have been formatted as 2 words

2011-11-07 Thread Torrent Girl
>> What i want to do is this: > >AFAIK, you cannot.  Check the previous responses. I posted an alternative. > >  >-Leig Leigh I tried your suggestion and it outputs the value of the column: Here is what I need to do. The date column in not displaying properly in my file so I need to format

Re: Output columns from a query that have been formatted as 2 words

2011-11-07 Thread Torrent Girl
>> What i want to do is this: > >AFAIK, you cannot.  Check the previous responses. I posted an alternative. > >  >-Leig Leigh, I am sorry I did not understand what you meant: Add a new column to the QoQ? ~| Order the Adob

Re: Output columns from a query that have been formatted as 2 words

2011-11-07 Thread Torrent Girl
>in SQL you would use square brackets >e.g. >select [first name] > >does this not work in QofQ ? > >if not, then remember a query is just a struct of associative arrays, >so you can simply reference the columns as struct keys > >e.g. >myquery["first name"][row] > >where row is the row number > >or

Re: Output columns from a query that have been formatted as 2 words

2011-11-07 Thread Torrent Girl
>in SQL you would use square brackets >e.g. >select [first name] > >does this not work in QofQ ? > >if not, then remember a query is just a struct of associative arrays, >so you can simply reference the columns as struct keys > >e.g. >myquery["first name"][row] > >where row is the row number > >or

Re: Output columns from a query that have been formatted as 2 words

2011-11-07 Thread Leigh
> What i want to do is this: AFAIK, you cannot.  Check the previous responses. I posted an alternative.   -Leig ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=ho

Re: Output columns from a query that have been formatted as 2 words

2011-11-07 Thread Russ Michaels
in SQL you would use square brackets e.g. select [first name] does this not work in QofQ ? if not, then remember a query is just a struct of associative arrays, so you can simply reference the columns as struct keys e.g. myquery["first name"][row] where row is the row number or it may be the

Re: Output columns from a query that have been formatted as 2 words

2011-11-07 Thread Torrent Girl
>In your original query give the column an alias like > >SELECT [First Name] AS FirstName ... > >then in your QoQ use the alias (FirstName) to refer to the column. > >Azadi > > >> The original is a stored proc. It retrieves the column names as two words because those are the column names used to

Re: Output columns from a query that have been formatted as 2 words

2011-11-06 Thread Leigh
Modifying the sql to use an alias is preferable. But if that is not possible, you could create a copy with a valid name. Then use that column name instead.     -Leig ~| Order the Adobe Coldfusion Anthology now! http://www.

Re: Output columns from a query that have been formatted as 2 words

2011-11-06 Thread Rex
Sorry, disregard my answer, it has been answered already and my solution is incorrect On 11/6/2011 12:41 PM, Rex wrote: > I posted an answer to this in CF-Newbie, sorry for the cross-post. > > In the QoQ, wrap the column name in single-quotes. Only tried in > CF9+MSSQL, but it works: > > >

Re: Output columns from a query that have been formatted as 2 words

2011-11-06 Thread Rex
I posted an answer to this in CF-Newbie, sorry for the cross-post. In the QoQ, wrap the column name in single-quotes. Only tried in CF9+MSSQL, but it works: SELECT 'this is data in the column' AS [COLUMN WITH SPACES IN THE NAME] SELECT 'COLUMN WITH SPACES IN THE NAME' AS COLUMNNA

Re: Output columns from a query that have been formatted as 2 words

2011-11-05 Thread Azadi Saryev
gt; Google says: > http://www.dreamincode.net/forums/topic/156610-query-of-queries-column-names-with-spaces/ > > On 11/5/11 10:41 PM, Torrent Girl wrote: > >> queryName["Column Name"][rowNumber] > >> > >> On 11/5/11 9:38 PM, Torrent Girl wrote: > >

Re: Output columns from a query that have been formatted as 2 words

2011-11-05 Thread .jonah
M, Torrent Girl wrote: >>> Hi All >>> >>> How do you output columns from a query that have been formatted as 2 >> words i.e. First Name? >>> The query is returned by a stored proc that can&#x

Re: Output columns from a query that have been formatted as 2 words

2011-11-05 Thread Torrent Girl
> queryName["Column Name"][rowNumber] > > On 11/5/11 9:38 PM, Torrent Girl wrote: > > Hi All > > > > How do you output columns from a query that have been formatted as 2 > words i.e. First Name? > > > > The query is returned by a stored pro

Re: Output columns from a query that have been formatted as 2 words

2011-11-05 Thread Torrent Girl
> queryName["Column Name"][rowNumber] > > On 11/5/11 9:38 PM, Torrent Girl wrote: > > Hi All > > > > How do you output columns from a query that have been formatted as 2 > words i.e. First Name? > > > > The query is returned by a stored

Re: Output columns from a query that have been formatted as 2 words

2011-11-05 Thread .jonah
queryName["Column Name"][rowNumber] On 11/5/11 9:38 PM, Torrent Girl wrote: > Hi All > > How do you output columns from a query that have been formatted as 2 words > i.e. First Name? > > The query is returned by a stor

Output columns from a query that have been formatted as 2 words

2011-11-05 Thread Torrent Girl
Hi All How do you output columns from a query that have been formatted as 2 words i.e. First Name? The query is returned by a stored proc that can't be edited. ~| Order the Adobe Coldfusion Anthology now!