Peter,
> put "Cat and Dog" into tString > repeat with tPos = 1 to the length of tString > if char tPos of tString = "a" then > put "*" into char tPos of tString > exit repeat > end if > end repeat > How about this one? get offset( "a", tString) if IT > 0 then put "*" into char IT of tString Thierry ------------------------------------------------ Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage - sunnYpdf _______________________________________________ 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