-
From: Denny Valliant
To: CF-Talk
Sent: Sat Aug 26 03:37:28 2006
Subject: Re: How would I code this line?
On 8/25/06, Bobby Hartsfield [EMAIL PROTECTED] wrote:
cfset name = first_namemiddle_name last_name /
cfif len(trim(suffix)
cfset name = name , suffix /
/cfif
Sure
what
scopes they are in and will apply them where they need to.
..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Denny Valliant
To: CF-Talk
Sent: Sat Aug 26 03:37:28 2006
Subject: Re: How would I code this line?
-Original Message
: RE: How would I code this line?
Are you serious? People... get a grip and stop being so anal. It's not my
code so I'm allowed to be lazy and not scope it since it's basically pseudo.
It showed the process of piecing the variables together regardless of what
they were or how they were scoped. I'm
On 8/26/06, Bobby Hartsfield [EMAIL PROTECTED] wrote:
Are you serious? People... get a grip and stop being so anal. It's not my
code so I'm allowed to be lazy and not scope it since it's basically
pseudo.
It showed the process of piecing the variables together regardless of what
they were or
Rick,
You can't use cfif within a cfset like that.
I think you cfsavecontent would be the best solution (best here being most
readable and maintainable).
cfsavecontent variable=Session.Client_Name
#Get_New_Client.Client_First_Name#
#Get_New_Client.Client_Middle_Name#
cfset session.clientname = get_new_client.client_first_name
get_new_client.client_middle_name
get_new_client.client_last_name /
cfif len(trim(get_new_client.client_name_suffix)) GT 0
cfset session.clientname = session.clientname ,
get_new_client.client_name_suffix /
/cfif
On
You could use ListAppend with space as the delimiter.
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-
-Original Message-
From: Rick Faircloth [mailto:[EMAIL
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
On 8/25/06, Bobby Hartsfield [EMAIL PROTECTED] wrote:
cfset name = first_namemiddle_name last_name /
cfif len(trim(suffix)
cfset name = name , suffix /
/cfif
Sure that LOOKS readable, but you know CF will be running around
trying to figure out which first_name field you're
cfset session.client_name =
#GNC.Client_First_name#nbsp;
#GNC.Client_Middle_Name#nbsp;
#GNC.Client_Last_Name#
,nbsp;#GNC.Client_Name_Suffix /
!--- Remove the last comma and nbsp if it's the last thing on the line ---
cfset session.client_name =
10 matches
Mail list logo