Oh Ok, That makes sense,

Thanks Duane!

-Mark :o)


----- Original Message -----
From: Duane Boudreau <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 20, 2000 11:53 AM
Subject: RE: # rule? [CF-Talk]


> Mark,
>
> I'm sure someone can explain it better than I (I assume it follows the by
> val/by ref logic in C/C++). The general rule of thumb I use is its quoted
or
> to be displayed it needs the #'s
>
> Here are samples of when to use it:
>
> <CF_MyTag SomeAttrib="#MyVar#">
> <cfoutput>#MyVar#</cfoutput>
> <cfset MyVar1 = "The value of MyVar2 is #MyVar2#">
>
> Common misues include:
> <cfset MyVar1 = #MyVar2#> should be <cfset MyVar1 = MyVar2>
> <CF_MyTag SomeAttrib=#MyVar#> should be <CF_MyTag SomeAttrib=MyVar>
>
>
> Some exceptions to the rule (that I can think of off the top of my head)
> are:
> IsDefined() ex: IsDefined("form.somefield")
> IIf() ex: IIf(IsDefined("form.somefield"), "form.somefield", De("0"))
>
>
> HTH,
> Duane Boudreau
> eMPower Project Manager
>
>
> > -----Original Message-----
> > From: Mark Adams [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 20, 2000 2:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: # rule? [CF-Talk]
> >
> >
> > What is the rule of thumb with the # ?
> >
> > I see you don' t need it to refer to cfparam variables but you do
> > use it for
> > cfset variables and table variables can someone clarify this?
> >
> > Thanks, Mark :o)
> >
> > ------------------------------------------------------------------
> > ------------
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
> > _talk or send a message to [EMAIL PROTECTED] with
> > 'unsubscribe' in the body.
> >
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to