Hi, put replacetext(theInput,"[1-7]","+") into theInput
is shorter. I don't know if it is also quicker. (I also wrote this on the forum, earlier today). -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za On 19 mrt 2012, at 23:50, Peter M. Brigham, MD wrote: > repeat with n = 1 to length(tInput) > if char n of tInput is a number > then put "+" into char n of tInput > else put "-" into char n of tInput > end repeat > > Or am I missing something? > > -- Peter > > Peter M. Brigham > pmb...@gmail.com > http://home.comcast.net/~pmbrig _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode