I don't think you need to use list functions at all, you know the position 
and length, you can just grab it

<cfset a = 
'+RESP:GTSTT,070106,868487001009190,GT500,41,0,0.0,0,14.7,153.035960,-27.471336,20130704121354,0505,0002,1B8D,A281,00,006064939682,-66,20130704122355,0758$'
 
/>
<cfset b = '+RESP:GTTRI, 
868487001009190,1,0,0,0,0.2,148,6.4,3,153.034551,-27.471390,20130610110953,0505,0002,1B6B,A281,00,0012,0103090402'
 
/>

<cfset imiea = mid(a, reFindNoCase("[0-9]{15}", a), 15) />
<cfset imieb = mid(b, reFindNoCase("[0-9]{15}", b), 15) />

<cfoutput>
#imiea#
<br>
#imieb#
</cfoutput>

Dale

On Thursday, 4 July 2013 23:35:18 UTC+10, [email protected] wrote:
>
>  Hi
>
>  
>
> I have a csv data set with each record contains a set of comma separated 
> values
>
>  
>
> I am trying to write cf code to interrogate each record to find the value 
> in the set of comma seated values that meets a specific character set
>
>  
>
> In the examples below you can see the value 868487001009190 is located in 
> position 3 of the first record and position 2 in the second record
>
>  
>
> Record 1: 
> '+RESP:GTSTT,070106,868487001009190,GT500,41,0,0.0,0,14.7,153.035960,-27.471336,20130704121354,0505,0002,1B8D,A281,00,006064939682,-66,20130704122355,0758$'
>
>  
>
> record 2: '+RESP:GTTRI, 
> 868487001009190,1,0,0,0,0.2,148,6.4,3,153.034551,-27.471390,20130610110953,0505,0002,1B6B,A281,00,0012,0103090402'
>
>  
>
>  
>
>  
>
> Kind Regards
>
>  
>
> Claude Raiola
>
> SAMARIS Software
>
> 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.


Reply via email to