Treat the value as a list....

listFirst(myVar, " ")
listRest(myVar, " ")
or listLast(myVar, " ")
or listGetAt(myVar, pos, " ")

-----Original Message-----
From: Paul Henderson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 23 March 2005 9:47 a.m.
To: CF-Talk
Subject: Seperate a Form Text Variable into Multiple Variables?

This should be fairly simple but I'm drawing a blank. How do I divide a form
variable into multiple variables based on spacing?

For example, say a submitted text form variable's value is "blue sky" what
would be the easiest way to seperate this into two variables named Word1 and
Word2 with Word1's value set to "blue" and Word2's value set to "sky"?

Any ideas are appreciated.

Thanks
-Paul




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199711
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to