<cfset myvariable="DATA|C:\temp\test">
variable 1: <cfoutput>#listfirst(myvariable,'|')#</cfoutput>
variable 2: <cfoutput>#listlast(myvariable,'|')#</cfoutput>

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




______________________________________________________________________
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