Perhaps not a bug.
It looks like the INPUT command returns a string. Therefore
:x = INT INPUT = 'Length?'
works as expected.
If I write FORWARD 'This is a text', the turtle writes the text together
with a line. I expected an error message saying "Not a number" or
something like this.
I do not know why you get the error message. It works on my computer.
(Assuming you are running LibreLogo in Writer.)
Kolbjørn
Den 07.12.2015 16:59, Graham Luffrum skreiv:
I tried executing the first line and got the error message
'Error (in line 1)'
LibreOffice 5.0.4.1 under LinuxMint 17.2
Graham
On 7 December 2015 at 16:26, Kolbjørn Stuestøl <kolbjoern@stuestoel.no>
wrote:
Write the following:
:x = INPUT "Length?"
FORWARD 50
FORWARD :x
FORWARD 50
This should draw a straight line. 50 + :x + 50 pixels long.
Instead of stepping forwards :x pixels the turtle writes the number from
the input box . The turtle also render a line under the number and
continues the next command from this point.
I think this is a bug, but to be sure I hope others can verify this.
LibreOffice 5.0.3.2, Windows 7, English.
Not tried for other versions.
Kolbjørn
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems?
http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be
deleted
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.