On 11/15/06, Munson, Jacob <[EMAIL PROTECTED]> wrote:
> > >Remove the pound signs around APPLICATION.getAllProds
> >
> > Ok duh.
>
> This is something that REALLY bothers me about ColdFusion. I love CF as
> much as the next guy, but I really wish they had made things more
> consistent. Sometimes if you are putting a variable name in a quoted
> attribute, you use ##, like cfdump (where it doesn't make any sense to
> require it, because the ONLY thing you're going to put in the var
> attribute of cfdump is a variable of some sort), but with cfoutput
> query="" you drop the ##. In my mind, the cfdump case is very similar
> to isDefined(""), but with isDefined you don't need ##. Makes no sense,
> IMO.
It's (relatively) consistent :)
use # signs when you need the variable evaluated.
isDefined('myVar') <-- you're not evaluating. just checking for existence.
<cfoutput query="foo"> <-- not evaluating at this point. pointing to
the variable. evaluating when you're outputting the column value from
the variable (e.g. #foo.columnName#).
<cfdump var="#foo#"> <-- don't really know :) cfdump is technically a
custom tag (at least it was at one point...it may not be in current
implementations of CF). if it's still implemented as a custom tag, it
does make sense that you're passing a variable value rather than a
literal string. <cfdump var="foo"> works, but the results are less
than exciting :)
--
Charlie Griefer
================================================
"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260569
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4