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
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
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
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
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
5 matches
Mail list logo