Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hexadecimal string to integer
Message
De
01/01/2004 20:46:18
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Hexadecimal string to integer
Divers
Thread ID:
00863354
Message ID:
00863354
Vues:
50
Hello All,

I have a string variable that I am trying to convert to integer but I get the following error :

Input string was not in a correct format.


here is the code:
int lnQ0940;
lnQ0940 = Int32.Parse("0x00E0",NumberStyles.Any);
I have also tried the following :
lnQ0940 = Int32.Parse("0x00E0",NumberStyles.HexNumber);
but keep getting the same error.

I have been reading the help files but can not figure it out.
Any help is greatly appreciated.


Thanks,
Sergio
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform