<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">SorryI wasn't more explicit.<br><br>I'm generating a(s) and b(s). If I initially generate two a(s) in a row, and then a b, the b gets put between the two a(s), not at either end of the string. Likewise, if I initially generate two b(s) in a row, and then an a, the a gets inserted between the two b(s), not at either end of the string, as would be expected.<br><br>Michael<br><br>--- On <b>Tue, 4/26/11, Bert Freudenberg <i>&lt;bert@freudenbergs.de&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Bert Freudenberg &lt;bert@freudenbergs.de&gt;<br>Subject: Re: [Newbies] Using text morph to save characters<br>To: "A friendly place to get answers to even the most basic questions about Squeak." &lt;beginners@lists.squeakfoundation.org&gt;<br>Date: Tuesday, April 26, 2011, 6:24 AM<br><br><div
 class="plainMail">On 24.04.2011, at 17:53, michael rice wrote:<br><br>&gt; This may not be an appropriate way to save characters in the order they are generated. This isn't working. Perhaps there's a better way?<br>&gt; <br>&gt; Two scripts:<br>&gt; (1) clear1: empties out a TextMorph<br>&gt; (2) addChar: inserts an 'a' or a 'b' at cursor position. Advances cursor position.<br>&gt; <br>&gt; Michael<br><br>What exactly is "not working"?<br><br>- Bert -<br><br><br>_______________________________________________<br>Beginners mailing list<br><a ymailto="mailto:Beginners@lists.squeakfoundation.org" href="/mc/compose?to=Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br></div></blockquote></td></tr></table>