Missed a '&' before middle_name but you get the idea

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

 

 


-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 10:10 PM
To: CF-Talk
Subject: RE: How would I code this line?

<cfset name = first_name & " " middle_name & " " & last_name />
<cfif len(trim(suffix)>
    <cfset name = name & ", " & suffix />
</cfif>

...:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

 

 

-----Original Message-----
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 3:43 PM
To: CF-Talk
Subject: How would I code this line?

My goal is to get rid of the comma after the Client_Last_Name, unless
there is a Client_Name_Suffix.

<CFSET Session.Client_Name = 

'#Get_New_Client.Client_First_Name#&nbsp;
#Get_New_Client.Client_Middle_Name#&nbsp;
#Get_New_Client.Client_Last_Name#

<CFIF Len(Trim(Get_New_Client.Client_Name_Suffix))>

,&nbsp;#Get_New_Client.Client_Name_Suffix#

</CFIF>

'>

This is all one line with no spaces, but I separated the parts
to make it easier to read.what am I doing wrong?

Can I use the CFIF in the middle of the CFSET like that or should I do this:

<CFSET Session.Client_Name=

'#Get_New_Client.Client_First_Name#&nbsp;
#Get_New_Client.Client_Middle_Name#&nbsp;
#Get_New_Client.Client_Last_Name#'

</CFSET>

<CFIF Len(Trim(Get_New_Client.Client_Name_Suffix))>

<CFSET Session.Client_Name='#Session.Client_Name#,&nbsp;
#Get_New_Client.Client_Name_Suffix#'>

Rick







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:251109
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to