Hi, I want to know how to go from a hexadecimal that is a string to a byte. For example "0x0A" I want to get a 10. How do I do it?
I've been trying for a while with the Convert method, implicit conversions, etc. But the user enters 0x0A and not only 0A and I do not know how to do it without doing a foreach running the entire string.
The error I get is that the string does not have the correct format. It says it's a Date Time
.
This is the code
ConfData.MyAdd.NodeA_Add = Byte.Parse(textBox_NodoA.Text, System.Globalization.NumberStyles.HexNumber);