I'm having a bit of trouble trying to convert a string which represents hex, to a byte.
Logic below, something like this:
String hexString = "0x5C"; Byte myNewByte; myNewByte = Byte.Parse(hexString);
Error: "The input string was not in a correct format"
I know I can have a byte with a value of '0x5C' but finding this troublesome! This should be straight forward. I just want to have a byte with the value represented by the string.
Any help would be much appreciated
Edited 6 Years Ago by Smithy566: n/a