I forgot that it's every 2:

<cfset strArray = listToArray("1Z0617756740260660","") />
<cfset newStr = '' />
<cfloop from="1" to="#arrayLen(strArray)#" index="i" step="2">
   <cfset newStr = listAppend(newStr,strArray[i]&strArray[i+1],":" ) />
</cfloop>


<cfdump var="#newStr#" />


On Thu, Jul 11, 2013 at 7:22 AM, Paul Kukiel <[email protected]> wrote:

> <cfset strArray = listToArray("1Z0617756740260660","") />
> <cfset newStr = '' />
> <cfloop from="1" to="#arrayLen(strArray)#" index="i">
>   <cfset newStr = listAppend(newStr,strArray[i],":" ) />
> </cfloop>
>
> <cfdump var="#newStr#" />
>
> Will do it.
>
>
> On Thu, Jul 11, 2013 at 12:28 AM, <[email protected]> wrote:
>
>>  Hi I am trying to figure our the best way to manipulate the value using
>> CF so I insert : after ever 2 characters  as in converting
>> 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60****
>>
>> ** **
>>
>> Any suggestions would be appreciated****
>>
>> ** **
>>
>> ** **
>>
>> ** **
>>
>> Kind Regards****
>>
>> ** **
>>
>> Claude Raiola****
>>
>> Director****
>>
>> ** **
>>
>> [image: logo_new]****
>>
>> ** **
>>
>> TrackingCentral Pty Ltd (A.C.N. 150 409 180)****
>>
>> Web: www.TrackingCentral.com.au <http://www.trackingcentral.com.au/>****
>>
>> Email: [email protected]****
>>
>> Call 1300 255 990****
>>
>> ** **
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "cfaussie" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/cfaussie.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Paul Kukiel
>



-- 
Paul Kukiel

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/groups/opt_out.


<<image001.gif>>

Reply via email to