Skip to main content
matthewa96033329
Participating Frequently
July 16, 2015
Answered

CP8: How do I output user input from a textbox to the screen?

  • July 16, 2015
  • 1 reply
  • 332 views

How do I output to the screen a value entered by a user in a textbox? So if they type in "Hello everyone" - how can I display "Hello everyone" to the screen? And can I display it as the text of a button or smartshape as well?

    This topic has been closed for replies.
    Correct answer Lilybiri

    Each Text Entry Box has an associated variable, its generic name is the same as the TEB (I prefer to change it to a better name). You can insert that variable in a text container (caption or shape) like any other variable using the X button in the Character part (I cannot post a screenshot, ignore the version you are using, could be anything since 6).

    You cannot use a variable as a label on a button. You can insert a variable in the text in a shape, which behaves as a text container. That is another big advantage of a shape button over a normal button: you can make the label dynamic by using a variable as label.

    1 reply

    Lilybiri
    LilybiriCorrect answer
    Legend
    July 17, 2015

    Each Text Entry Box has an associated variable, its generic name is the same as the TEB (I prefer to change it to a better name). You can insert that variable in a text container (caption or shape) like any other variable using the X button in the Character part (I cannot post a screenshot, ignore the version you are using, could be anything since 6).

    You cannot use a variable as a label on a button. You can insert a variable in the text in a shape, which behaves as a text container. That is another big advantage of a shape button over a normal button: you can make the label dynamic by using a variable as label.

    matthewa96033329
    Participating Frequently
    July 17, 2015

    Thanks! And I discovered something cool when I put the text container on the same page, namely, it appears instantly.

    Lilybiri
    Legend
    July 17, 2015

    Yes, while you are typing in the TEB you'll see the label appearing character by character. Cool!