-----Original Message-----
From: Chris Evans <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, July 06, 2000 5:06 PM
Subject: RE: line break as delimiter
>You'll need #CHR(10)# as your delimiter.
>
>Why incur the extra overhead of converting the list to an array, and then
>looping over the array? Arrays are normally faster than lists, but the
>extra overhead in converting the list to an array negates any performance
>gains.
>
>Chris Evans
>[EMAIL PROTECTED]
>http://www.fuseware.com
>
>
>
>-----Original Message-----
>From: Brandon Whitaker [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, July 06, 2000 12:28 PM
>To: [EMAIL PROTECTED]
>Subject: Re: line break as delimiter
>
>
>>Hi
>>im trying to run a list loop from a file that uses separate lines for the
>>items.
>>i would like to use a line break as a delimiter
>>anyone have any ideas??
>>*****************************************************
>><select name="screen_names">
>> <cfloop index="i" list="#IM_list#" delimiters=" ">
>> <option value="1" SELECTED>#i#</option>
>> </cfloop>
>></select>
>>*****************************************************
>>Thanks
>>-Eli-
>
>You could turn it into an array...
> <cfSet resultArray = listToArray(IM_list,chr(10))>
>
><select name="screen_names">
> <cfloop from="1" to="#arrayLen(resultArray)# index="i">
> <option value="1" SELECTED>#resultArray[i]#</option>
> </cfloop>
></select>
>
>I notice that you also have the same value (1) being input for all of your
>options, you might want to re-think that. :)
>
>HTH...
>
>Brandon Whitaker
>[EMAIL PROTECTED]
>-------
>"It'll get used by the same people using Opera. People dressed in black
>wearing berets."
>- Dave Watts, on Mozilla
>
>"It makes you feel so welcome to have a greeter like Papa Dave at the door.
>Kind of like what Wal-Mart wishes it could do."
>- John Allred, on Dave Watts
>
>"The net interprets censorship as damage and routes around it."
>- John Gilmore
>
>
>---------------------------------------------------------------------------
-
>--
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>the body.
>
>
>---------------------------------------------------------------------------
---
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.