Martin wrote:

> ...so when in the loop how do I parse the current line..
> 
> eg..check the current line for certain characters, and if it passes the 
> check I copy the string to a new entry in an array.

Try this within the loop Steve suggested:

<cfif Find(idx, "some string") neq 0>
        <cfset some_array[ArrayLen(some_array)+1][1] = idx>
</cfif>

That's assuming you want to capture the whole line.

Also note that a structure might be an easier solution than an array 
unless you need the multi-dimensionality. If you use an array, don't 
forget to define it prior to the loop with ArrayNew(x) where x is the 
number of required dimensions. Valid numbers are 1-3.

Charles
[EMAIL PROTECTED]


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        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