Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting a variable from Hexadecimal to integer
Message
 
À
30/12/2003 13:48:12
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00862909
Message ID:
00863057
Vues:
18
>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);
>
>
>
>Thanks,
>Sergio

Any - Indicates that all styles, except AllowHexSpecifier, are used. This is a composite number style. 511

Use the HexNumber Number style.

i.e
lnQ0940 = Int32.Parse("0x00E0",NumberStyles.HexNumber);
Brian Seekford
Seekford Solutions, Inc.
http://www.SeekfordSolutions.com
Internet ActiveX Controls and .NET Class Libraries.
SMTP/S FTP POP3/S HTTP/S SNTP MIME PING WHOIS TRACEROUTE NNTP DNS MX
Base64, UUEncode, yEnc, MD5, SHA1, URL, Quoted-Printable.
Resizer and Tooltips
Email Verification and more. Check us out!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform