Skip navigation
Currently Being Moderated

Working with hexadecimals

Aug 23, 2013 11:21 AM



I want to send some hexadecimals thru UDP.

So how do I send forexample: 0x40 0x50 0x60?


Can I do it like this?



public var Value:String;


Value = "0x40 0x50 0x60";

  • Currently Being Moderated
    Aug 23, 2013 1:17 PM   in reply to fsoender

    If you mean you want to send three characters whose hex codes you know, you need to use an escape sequence like "\x40\x50\x60". The string "\x40" is just one character whose hex code is 40. The string "0x40" is four characters, "0", "x", "4", and "0".

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points