Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2010
    Location
    Sheffield
    Posts
    827
    Thanks
    93
    Thanked 18 Times in 18 Posts

    Add string an var together

    I have a var (holderCol) containing a 6 digit colour code e.g. '111111'.

    I need to put that var together with a string like such

    Code:
    obj_color.color = '0x'.holderCol;
    Whats the correct way to do this?

  • #2
    New to the CF scene
    Join Date
    Dec 2011
    Location
    Southern California
    Posts
    8
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Its been some time since I wrote AS code, but I believe a simple concatenation will work..

    Assumming holderCol has the value of '111111';
    Code:
    obj_color.color = '0x' + holderCol;


  •  

    Posting Permissions

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