RE: Splitting two word string

2004-07-08 Thread Tangorre, Michael
ListGetAt(list,1, ) ListGetAt(list,2, ) Mike I have a string returned from a db field, such as my dog (these strings will be different two word combinations, each word of different lengths - which to me rules out the use of Left() and Right(). How would I take my dog and break it apart

Re: Splitting two word string

2004-07-08 Thread G
If its always a two letter string, and its always seperated by a space, you could use ListFirst and ListRest, treating the string as a list with space delimiters. BG - Original Message - From: Mark Leder To: CF-Talk Sent: Thursday, July 08, 2004 2:37 PM Subject: Splitting two word

Re: Splitting two word string

2004-07-08 Thread Charlie Griefer
listFirst(string, ' ') listLast(string, ' ') (fewer arguments) :) - Original Message - From: Tangorre, Michael [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, July 08, 2004 12:44 PM Subject: RE: Splitting two word string ListGetAt(list,1, ) ListGetAt(list,2, ) Mike

RE: Splitting two word string

2004-07-08 Thread Mark W. Breneman
Try looking at this as two items in a list and the list delimited by a space. listfirst and listlast should do what you need. VARIABLE.firstword = listfirst(db_field, ' ') VARIABLE.secondword =listLast(db_field, ' ') Mark W. Breneman -Cold Fusion Developer -Network Administrator Vivid Media

RE: Splitting two word string

2004-07-08 Thread Mark Leder
Thanks everyone for the quick help. The listfirst, listlast functions worked great. Thanks, Mark _ From: Mark W. Breneman [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 3:46 PM To: CF-Talk Subject: RE: Splitting two word string Try looking at this as two items in a list