This might be trivia since you already have your answer... but, there is 
also a pretty good UDF on CFLib.org that handles multi-character 
delimeters... called Split(). There is also one that will split on 
RegExp's called RESplit().

Jp

On Tuesday, September 3, 2002, at 11:57 AM, Everett, Al wrote:

> <cfset splitme="DATA|C:\temp\test">
> <cfset Variable_1=ListFirst(Variables.splitme,"|")>
> <cfset Variable_2=ListRest(Variables.splitme,"|")>
>
>> -----Original Message-----
>> From: FlashGuy [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, September 03, 2002 2:47 PM
>> To: CF-Talk
>> Subject: Splitting a variable into two
>>
>>
>> Hi,
>>
>> I would like to split the following line into two variables.
>> My delimiter would be a "|"
>>
>> DATA|C:\temp\test
>>
>> variable 1: DATA
>> variable 2: C:\temp\test
>>
>>
>>
>>
>>

Jon Gorrono (Gorro&ntilde;o)            [EMAIL PROTECTED]
Programmer                              1400-M Surge II
Mediaworks                              UC Davis
A Department of IET                     Davis, CA   95616
University of California at Davis

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to