<CFSET original_string = "this is a really short message">

<CFSET new_string = mid(original_string, 6, 11)>

new string = "is a r"


Shane




-----Original Message-----
From: PC [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 04, 2000 4:08 PM
To: [EMAIL PROTECTED]
Subject: How to get part of string?


I must be missing something obvious -- but I need a function to set a
variable to a range of characters within a string.

I know the starting and ending indices -- how can I set a variable to the
characters within that range? I don't see a function for that...

THX

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to