<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
> 
> 
> 
> 
> ---------------------------------------------------
> FIGJAM
> ---------------------------------------------------
> 
> 
> 
> 
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
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