Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleParse a hexadecimal string in VB .NET by using Integer.Parse.
DescriptionThis example shows how to parse a hexadecimal string in VB .NET by using Integer.Parse.
Keywordsparse, hex, hexadecimal, VB.NET, Integer.Parse
CategoriesVB.NET, Algorithms
 
Thanks to Ken C.

One of the overloaded versions of Integer.Parse takes a parameter that indicates the type of strnig to parse. The type can have one of several values including decimal, currency, and hexadecimal. This example uses the following code to parse a hexadecimal value.

 
Dim value As Long = Long.Parse(txtHex.Text, 
Globalization.NumberStyles.HexNumber)
txtDecimal.Text = value.ToString()
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated