Hai Joshua,

<cfset str="Lonwood Leesburg">
<cfset tok1=ListGetAt(str,1,' ')>
<cfset tok2=ListGetAt(str,2,' ')>

After this tok1=Lonwood  and tok2=Leesburg That's it

Cool....

> I have a variable that is passed such as Lonwood Leesburg.  Sometimes
> Central Orlando.  I need to know how to split it at the space then insert
> one half into one column of a db and the other half to another column of
the
> db.
>
> Joshua Tipton
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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