dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [Resolved] simple string question

  1. #1
    Junior Member
    Join Date
    May 2004
    Location
    Philadelphia, PA
    Posts
    24

    simple string question

    I have a really really simple question that has got me wound around a gear here,

    How do you include quotation marks in to a string that contains a variable?

    For Example:
    messageString = "<NEW_CLIENT userName = " + \"+ userName+\" + "/>";

    userName is the variable

    Thanks in advance,

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    messageString = "<NEW_CLIENT userName = \"" + userName + "\"/>";

  3. #3
    Junior Member
    Join Date
    May 2004
    Location
    Philadelphia, PA
    Posts
    24

    Thanks, JBum!

    Hey Thanks for the fix, it worked perfectly. I started to feel like a buffoon because I just couldn't get the syntax correct. I appreciate your taking the time, Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center