There exists user-created functions that return the position in one string of the first character found in a supplied set of characters. (I first saw Doug Lee do this, and I snagged the idea from him to use it privately in my own code, so I know at least two of these kinds of functions are floating around. GRIN.) I've also written a subString variant that extracts until the first character from a supplied set is reached, complete with flags to test for things like digits, upper/lower case letters, punctuation, and white space characters. So, in your example, you might call something like: subStringTil("Menu:only available in To DVD mode", 1, ":", 0) "Menu" would be returned. If anyone wants, I'll be glad to track down the dependant functions and tidy everything into a module. HTH, Jim Original message from: "GianniP46" <giannip46@xxxxxxxxxxxxx> subject: [jawsscripts] Re: Character Index in String? date: Wed, 21 Jan 2009 23:07:10 -0500 >Wouldn't StringChopRight help you with that? > ----- Original Message ----- > From: Donald Marang > To: jawsscripts@xxxxxxxxxxxxx > Sent: Wednesday, January 21, 2009 10:06 PM > Subject: [jawsscripts] Character Index in String? > > Hopefully, this is an easy question for you guys.I want to remove all > characters in a string after the occurrence of a certain character, lets say > ":", and including that character. I looked at the StringLeft and > StringContainsChars functions. To have these two functions work together, > the StringContainsChars would need to return the index where the character > was found rather than just a Boolean True or false. Are there more > appropriate functions or methods to accomplish this simple task. > For instance I want to transform the string > "Menu:only available in To DVD mode" > to > "Menu" > > Don Marang > > > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > > > > -- > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.552 / Virus Database: 270.10.10/1906 - Release Date: 1/21/2009 > 7:07 AM > > >__________ >Visit and contribute to The JAWS Script Repository http://jawsscripts.com > >View the list's information and change your settings at >//www.freelists.org/list/jawsscripts __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts