[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L>input of numbers



See attached for what the result looks like.

To run just call WIN
and input the 2 numbers and hit the Calc button.

to docalc
localmake "arg1 first comboboxgettext "myarg1
localmake "arg2 first comboboxgettext "myarg2
staticupdate "myanswer :arg1 * :arg2
end

to win
windowcreate   "main     "mywindow   "mytitle  0  0 100 100 []
staticcreate   "mywindow "myanswer   "???     20 20  20  10
staticcreate   "mywindow "mystatic1  "A       25 10  10  10
staticcreate   "mywindow "mystatic2  "=       35 10  10  10
staticcreate   "mywindow "mystatic3  "B       45 10  10  10
staticcreate   "mywindow "mystatic4  "*       65 10  10  10
staticcreate   "mywindow "mystatic5  "C       75 10  10  10
comboboxcreate "mywindow "myarg1              40 20  20  10
comboboxcreate "mywindow "myarg2              70 20  20  10
buttoncreate   "mywindow "myend      "End     25 50  25  15 [windowdelete "mywindow]
buttoncreate   "mywindow "mycalc     "Calc    50 50  25  15 [docalc]
end


jstclair@omsd.cerf.fred.org wrote:
> 
> Please reply to mark weber <mrweber@cleo.murdoch.edu.au>  or
> logo-l@gsn.org   NOT   logo-list@gsn.org  or  me.
> 
>                         -John-
> --Message below re-posted by <jstclair@omsd.cerf.fred.org>
> Date - Sat, 29 Aug 1998 08:57:15 +0800
> >From - mark weber <mrweber@cleo.murdoch.edu.au>
> To - jcstclair@omsd
> Subject - input of numbers
> Usenet: comp.lang.logo
> ------------------
> Post Usenet mail to comp-lang-logo@ucbvax.berkeley.edu
> ------------------
> 
> hello turtles !
> 
> greetings from down under.
> 
> a couple of us have been mucking around in vb and mswlogo and are now to
> the point of windows. mswwindows i guess.
> 
> now the point to this is we wish to input a coupleof numbers into a
> proceedure, like in
> 
> v = u + at
> 
> where we need a value for u, a and t to work out v (velocity)
> 
> so we need to be able to enter three numbers, click on a button, and
> retrieve a result
> 
> could  you help plese ?
> 
> thanks
> 

--
===============================================================
George Mills (mills@softronix.com)
http://www.softronix.com/
The www page contains some very powerful educational software.
Our single most important investment is our kids.

GIF image



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home