RE: How to get part of string?
Won't that return: is a really It starts at position 6 and returns the next 11 characters? Lon Lentz Applications Developer - Alvion Technologies DataWarehousing and List Sales - Market Your Lists on the Net! [EMAIL PROTECTED] 941-574-8600 Ext. 210 -Original Message- From: Shane Pitts [mailto:[EMAIL PROTECTED]] Sent: Friday, August 04, 2000 6:55 PM To: [EMAIL PROTECTED] Subject: RE: How to get part of string? CFSET original_string = "this is a really short message" CFSET new_string = mid(original_string, 6, 11) new string = "is a r" 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=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: How to get part of string?
Use the Mid() function: newvariable = Mid(variable, startposition, endposition) -Original Message- From: PC [mailto:[EMAIL PROTECTED]] Sent: Friday, August 04, 2000 3: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=listsbody=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=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: How to get part of string?
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=listsbody=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=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.