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 string

  Hi all,

  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 so that I can return two new
  vars,

  VARIABLE.firstword =
  VARIABLE.secondword =

  I've poked around on CFLib without much success.

  Thanks, Mark
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to