actually, you only need #s in the default value field.  if you use # in the
name field, it defines a variable named <whatever's in
client.CustomerCompany> instead of the variable names
"client.CustomerCompany."

Chris Olive,
DOEHRS Website Administrator 

-----Original Message-----
From: Milks, Jim [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 28, 2000 1:29 PM
To: '[EMAIL PROTECTED]'
Subject: RE: cfparam question


 Pound signs!
<cfparam name="#client.CustomerCompany#"
default="#qGetCorpInfo.CorporateName#">, 


-----Original Message-----
From: Stas Newdel
To: CFTalk
Sent: 28/08/00 1:23 PM
Subject: cfparam question

Hello,

I'm trying to do this:

<cfparam name="client.CustomerCompany"
default="qGetCorpInfo.CorporateName">, and the variable doesn't get set
a
value, it is initialized as blank.

qGetCorpInfo is a query and it does return a record. Basically, I just
want
to use a shorthand for:

<cfif not IsDefined("client.CustomerCompany")>
        <cfset client.CustomerCompany = qGetCorpInfo.CorporateName>
</cfif>

which works fine but is more typing :)

Thanks for any tips.

------------------------------------------------------------------------
------
Archives: http://www.mail-archive.com/[email protected]/
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/[email protected]/
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/[email protected]/
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