How to convert hex string to integer

  • Thread starter Thread starter Tanja Krammer
  • Start date Start date
T

Tanja Krammer

Dear all,

string a="0x0000000a";
int.Parse(a) <-Wrong format exception!!!!
What do I do wrong?
 
Convert.ToInt32("0x0000000a", 16)

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top