none
First lesson in Small basic RRS feed

  • Question

  • In the very first lesson the 'hello word' line is followed by 'press any key to continue'

    From where or how is this line generated?

    Is it necessary?

    Wednesday, June 13, 2012 6:18 PM

Answers

  • This is automatically generated in a TextWindow when the program ends. 

    Otherwise the TextWindow would just pop open, say "Hello World" and close immediately - all you would see is flash as the window opened and then closed.

    This effect is specific to the TextWindow since it is often used to just write out results at the end of a calculation and it is handy that the window doesn't close without a prompt.

    To force the program to end and close the TextWindow use 'Program.End()'.


    Wednesday, June 13, 2012 6:35 PM
    Moderator
  • Hey cpfd!

    If you wanna avoid that message showing up, just force your program to finish w/ Program.End().

    Moreover, no end messages show up when using the GraphicsWindow!


    Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^)

    Wednesday, June 13, 2012 6:35 PM
    Answerer

All replies

  • This is automatically generated in a TextWindow when the program ends. 

    Otherwise the TextWindow would just pop open, say "Hello World" and close immediately - all you would see is flash as the window opened and then closed.

    This effect is specific to the TextWindow since it is often used to just write out results at the end of a calculation and it is handy that the window doesn't close without a prompt.

    To force the program to end and close the TextWindow use 'Program.End()'.


    Wednesday, June 13, 2012 6:35 PM
    Moderator
  • Hey cpfd!

    If you wanna avoid that message showing up, just force your program to finish w/ Program.End().

    Moreover, no end messages show up when using the GraphicsWindow!


    Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^)

    Wednesday, June 13, 2012 6:35 PM
    Answerer