josgood
asked on
AllowHexSpecifier doesn't parse "x1"
I'd like to parse
int a = Int32.Parse("x1",System.Gl obalizatio n.NumberSt yles.Allow HexSpecifi er);
but it throws FormatException "Input string was not in a correct format."
What should I be doing?
int a = Int32.Parse("x1",System.Gl
but it throws FormatException "Input string was not in a correct format."
What should I be doing?
What about this:
"0x1"
"0x1"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
example CLng("&H12")
Else in case of your function it should be just 1 & not x1