Thursday, February 5, 2009

Converting from hexa decimal string to integer or decimal

string strHex = "0A";
int pdulen = int.Parse(strHex, System.Globalization.NumberStyles.HexNumber);
MessageBox.Show("Decimal equivalent="+pdulen.ToString(),"HEX TO INT");
Hexadecimal To Integer or Decimal in .NET

isn't it easy

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails