I hope and you can help me please, I have a label that shows a value in binary.
Example: "1000010101"
, this data, I'm reading it with an inverted for. That is, starting from right to left, the binary number is dynamic, so it will not always be the same.
Until now this is my idea, but it does not give me any value
for (int i = lbl_conversion.Text.Length; i > 0; i--)
{
if (st[i] == 1)
{
MessageBox("1");
}
else
{
MessageBox("0");
}
}
What I would like is to read character by character from left to right and know if it is "1"
or "0"
and then make a comparison, could someone support me to get that result?
Thank you.