<p>I got an error here too, when I first did the example. I think I removed: self turnOff and the code worked. I was using the Cobalt image though. not sur if this helps.</p><p>wfpi<br></p><br><div><span class="gmail_quote">On 4/28/08, <b class="gmail_sendername">Dr. Zephy</b> <<a href="mailto:yeoldemac@gmail.com">yeoldemac@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm working through the Squeak by Example book and ran into a snag. The code on<br> page 33 for the Quinto game is returning an error message.<br> I have the SBECell selected and "-- all --" is highlighted in the right pane,<br>
just like in the book, but it responds with the message "Unknown variable:<br> initialize please correct or cancel: / declare temp / declare instance /<br> cancel".<br> <br> So I guess it doesn't recognize "initialize" and thinks I'm trying to create a<br>
variable? According to the book it should be recognized.<br> <br> Here's the code:<br> <br> initialize<br> super initialize.<br> self label: ''.<br> self borderWidth: 2.<br> bounds := 0@0 corner: 16@16.<br>
offColor := Color paleYellow.<br> onColor := Color paleBlue darker.<br> self useSquareCorners.<br> self turnOff<br> <br> <br> I even downloaded the code for the book from Squeaksource and pasted it in and<br>
it does the same thing.<br> <br> Any help would be appreciated.<br> <br> Thanks,<br> - Eric (Dr. Zephy)<br> <br> _______________________________________________<br> Beginners mailing list<br> <a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br> </blockquote></div><br>