-----Original Message-----
From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]]

If you have:

<cfset variables.my_var = "#query.column#">
That tells me that there is a variable being set and it is a string

<cfset variables.my_var = "query.column">

Am I setting my variable to the two words seperated by a period,
query.column? or to a variable query.column?
---------------------------

I missed the start of this thread, but this seems like a small but
important tangent to get straight...

Doesn't the second CFSET set the variable to the string "query.column"?
I imagine the real debate is between:

<cfset variables.my_var = "#query.column#">

and

<cfset variables.my_var = query.column>

If we're pitching in, I usually prefer the second if your only using
that variable. Studio colour coding means it's easy to see you're
referring to a variable... If you're concatenating, though I find it
easier to use

<cfset variables.my_var = "The column value is: #query.column#">

rather than

<cfset variables.my_var = "The column value is:" & query.column>

Again, colour coding makes the first one easier to scan.

Signing out on the "CF nit-picking" debate :-)

- Gyrus

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
- PGP key available
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to