Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: arguments for newtext command
From: "Erik Nauman" <ENauman@xxxxxxxxxxxxxxxx>
Date: Sat, 16 Jun 2007 01:54:31 -0400

I'm trying to make a project that emulates Excel in that it covers the screen
with rows of adjacent text boxes. The problem I'm having in the below code is
that newtext "does not like -300 as input in cell." This suggests a syntax
error but when I replace the variables :the.x.cor and :the.y.cor with absolute
values instead of variables it works fine, it just doesn't shift the x and y
positions for each new text box to make the whole row. So why won't newtext
accept variables for x and y values?
Thanks, 
Erik
 
to makerow
make "the.x.cor -300
make "the.y.cor 200
make "place 1
row
end

to row
if :the.x.cor > 300
[stopme]
cell
make "the.x.cor :the.x.cor + 80
row
end
 
to cell
newtext word "a :place :the.x.cor :the.y.cor [80 30]
make "place :place + 1
end 

<<winmail.dat>>


  • Previous by thread: Online participation in EuroLogo 2007
  • Next by thread: Re: arguments for newtext command

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008