8 Replies Latest reply on Mar 20, 2007 9:15 AM by SymTsb

    Adding more String

    numerical07 Level 1
      I am creating a program that has a Output Box . A Input Box, and a Send Button. I created a Script that allows the user to put some string into the Input Box, and once they press send, it will display on the output box. I want to have it where once they press send. They can type in some different text and instead of the different text replacing the previous text displayed in the box, it only adds on . For example

      send.OnPress = function() {
      outputbox.text = inputbox.text;
      }


      Say I typed in Hello into the inputbox.text. Then the string "Hello" will display in the output box. Now say I typed World the second time. Then the word "World" will replace "hello". I want it to instead say "Hello World" once I type in the word world the second time.