[Thread Prev] [Thread Next]
RE: calculator - getting charcters to variable till some sign
mwforum@xxxxxxxxxxxxxxxxxx (Zehava Wizman)
Wed, 28 Jul 2004 15:45:51 +0300
in my attached MW2 file (in procedures) I wrote my problem
From: "Wendy Petti" <wpetti@xxxxxxxxxxxx>
To: "Zehava Wizman" <zehava_w@xxxxxxxxxxx>
Subject: RE: calculator - getting charcters to variable till some sign
Date: Sun, 25 Jul 2004 10:56:42 -0400
Hmmmm.... I'm not really sure! It would help me to see your project so
But I also think you should pose your question to the whole MWForum list,
because some of the members of the list know a lot more than I do and have
clever solutions to problems. Would you post your question there, along
with your attached project? I will see what I can do to help, but I'd like
to involve them, too. Write to:
What I'm thinking so far is that if you really want to create a calculator,
the user should not have to make a space before and after the symbol for
operation. And the operation itself should not appear in the display. But
after typing the symbol, the first number should become hidden (and stored
as a variable) and the second number should begin appearing on the display.
Garry Clark of Australia has made a "Broken Calculator" project that really
does function like a calculator except that some of the keys are missing
purpose). Perhaps you could study his procedures to see how he does it.
It's posted at Math Cats but I also attach it here so you can have access
the procedures. He's come up with a fascinating solution, I think. The
ENTER :V procedure is the one you need to focus on. Each turtle wearing a
number or a sign has an instruction - the "6" turtle has the instruction
If you need a solution that responds to the actual keys typed on the
computer, then perhaps you could use READCHAR to activate the number
on the page.
> -----Original Message-----
> From: Zehava Wizman [mailto:zehava_w@xxxxxxxxxxx]
> Sent: Sunday, July 25, 2004 7:53 AM
> To: wpetti@xxxxxxxxxxxx
> Subject: calculator - getting charcters to variable till some sign
> Hello Wendy!
> you gave me good advises before, so I continue asking you....
> I made a calculator , one textbox is getting the numbers with the
> sign (*,- etc...)
> the textbox is called display and I wrote make "list1 display,
> now I want to
> take the numbers until the sign to variable num1, and those after it to
> num2, there is space between numbers and sign, how can I do it?
<< broken_calculator.mw2 >>
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
Description: Binary data
Previous by thread:
Status of Logo, research summary
Next by thread:
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.