yep

Keep in mind that pound signs are only necessary when you want to evaluate a
variable inside a string.  If you need to reference a variable's value then
you must either:

use quotes AND pound signs (<cfset foo = "#bar#">)
OR
NO quotes and NO pound signs (<cfset foo = bar>)

You CAN do this: <cfset foo = #bar#> - but who in their right mind would
want to?

If you use quotes and no pound signs you are only referencing the variable
name - NOT its value!  There are times when you will want to do this - like
isDefined("variables.foo").  

It all makes sense after you work with it for a while

+-----------------------------------------------+
Bryan Love
  Macromedia Certified Professional
  Internet Application Developer
  Database Analyst
Telecommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+

"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
        - Thomas Paine, The American Crisis



-----Original Message-----
From: Matthew R. Small [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 10, 2002 12:39 PM
To: CF-Talk
Subject: RE: to # or not to #


Can't you do

<cfswitch expression=form.id>

??

Haven't tried it... seems like it would work.

- Matt Small

-----Original Message-----
From: Howie Hamlin [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 10, 2002 3:25 PM
To: CF-Talk
Subject: Re: to # or not to #

Yes, othewise the switch would be on a string with a value of "form.id"

Regards,

--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com  - 631-737-4668 x101
inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
>>> Find out how iMS Stacks up to the competition:
http://www.coolfusion.com/imssecomparison.cfm

----- Original Message ----- 
From: "Charlie" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 3:19 PM
Subject: to # or not to #


> I agree with the practice of pounds signs only when
necessary..........are pound signs necessary in the following?
> 
> <cfswitch expression="#form.id#">
>     <cfcase value="a"></cfcase>
>     <cfcase value="b"></cfcase>
>     <cfcase value="c"></cfcase>
>     <cfdefaultcase></cfdefaultcase>
> </cfswitch>
> 


______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to