At 15:25 20/06/01 +0300, you wrote:

Thanks Pekka, that's exactly what I was trying to achieve.
I have some questions about this script:

>on randomcalculation
>  Operatorlist = ["+", "-", "*", "/"]
>  commandString = "put"
>  repeat with a = 1 to 4
>    commandString = commandString&&(random(10))&".0"
>    commandString = commandString&&Operatorlist[random(4)]
>  end repeat
>      commandString = commandString&&(random(10))&".0"

>> Why do we repeat the line above?

>  put commandString
>  do commandString

>> How do I get the result into my text field? I can get the sum into
>> a text field but not the result?

>end

Thanks again for the help, Dion.


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to