locked
how do you get small basic to read something RRS feed

  • Question

  • if I put   : Textwindo.writeline("enter your name") how do you get it to read "enter your name" 

    thank you for helping me get my program to work

    Tuesday, December 12, 2017 1:08 PM

Answers

  • joseph3423,

    Try this,

    TextWindow.WriteLine("Enter your Name: ")
    UserName=Textwindow.Read()
    TextWindow.WriteLine("Hi "+UserName)


    JR

    • Proposed as answer by litdev Tuesday, December 12, 2017 7:48 PM
    • Marked as answer by WhTurner33Editor Sunday, December 24, 2017 12:09 PM
    Tuesday, December 12, 2017 1:30 PM
    Answerer

All replies

  • Hi Joseph,

    http://smallbasic.com/doc.aspx?o=TextWindow

    Read

    TextWindow.Read()

    Reads a line of text from the text window. This function will not return until the user hits ENTER.

    Returns

    The text that was read from the text window
    • Proposed as answer by litdev Tuesday, December 12, 2017 7:48 PM
    Tuesday, December 12, 2017 1:17 PM
  • joseph3423,

    Try this,

    TextWindow.WriteLine("Enter your Name: ")
    UserName=Textwindow.Read()
    TextWindow.WriteLine("Hi "+UserName)


    JR

    • Proposed as answer by litdev Tuesday, December 12, 2017 7:48 PM
    • Marked as answer by WhTurner33Editor Sunday, December 24, 2017 12:09 PM
    Tuesday, December 12, 2017 1:30 PM
    Answerer