who branded Jsp?  and which is better?




-----Original Message-----
From: John Stanley [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 1:40 PM
To: CF-Talk
Subject: White Space -- Solution


Again, as soon as I send the e-mail out; I figuire it out...

I just needed to concatanate a variable with each segment of the output and
then display the end result as such:

10001292001000019 

CODE SNIPPET>>>>>>>

<cfif batch_header_done is 0>
        <!--- Create Batch Record --->
                <!--- Transaction Type --->
                        <cfset batch= 1>
                <!--- Submitting facility code --->
                        <cfif len(check_billing.countycode) lt 2>
                                <cfset county_difference = (2 -
len(check_billing.countycode))>
                                <cfloop index="counter" from="1"
to="#county_difference#">
                                        <cfset batch = batch & "0">
                                </cfloop>
                                <cfset batch = batch &
"#check_billing.countycode#">
                        <cfelse>
                                <cfset batch = batch &
"#check_billing.countycode#">
                        </cfif>
                <!--- Batch submission Date --->
                        <cfset batch = batch &
"#DateFormat(currentsharecaredatetime, 'mmddyyyy')#">
                        <!--- Record count --->
                        <cfif len(get_affected_records.recordcount) lt 6>
                                <cfset record_difference = (6 -
len(get_affected_records.recordcount))>
                                <cfloop index="counter" from="1"
to="#record_difference#">
                                        <cfset batch = batch & "0">
                                </cfloop>
                                <cfset batch = batch &
"#get_affected_records.recordcount#">
                        <cfelseif len(get_affected_records.recordcount) is
6>
                                <cfset batch = batch &
"#get_affected_records.recordcount#">
                        <cfelseif len(get_affected_records.recordcount) gt
6>
                                <cfset batch = batch & "999999">
                        </cfif>
                        <cfset batch_header_done = 1>
                        #batch#
</cfif>

Thanks anyway guys....

John Stanley
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to