2 Replies Latest reply on Jul 22, 2007 5:39 AM by Newsgroup_User

    Variabe

    Level 7
      Hi
      one Problem with Variables


      var test:String = textbox.text;

      tarce(test) give me only the text from textbox ---> Halo world (e.g)
      I want that trace give me "Hallo world" (with ") out.

      What I have to do??

      thanks

      Sebastian



        • 1. Re: Variabe
          Greg Dove Level 4
          you can do it like this (escaping the quotation marks:

          trace("\""+test+"\"");

          or like this:

          trace('"'+test+'"');

          which uses single quotes as the string delimiters.

          • 2. Re: Variabe
            Level 7
            thx

            "GWD" <webforumsuser@macromedia.com> schrieb im Newsbeitrag
            news:f7vhom$2dv$1@forums.macromedia.com...
            > you can do it like this (escaping the quotation marks:
            >
            > trace("\""+test+"\"");
            >
            > or like this:
            >
            > trace('"'+test+'"');
            >
            > which uses single quotes as the string delimiters.
            >
            >