|
-
Need to Convert a Hex string to a Hex number
Okay, here is the story...
strTemp = "95CD4F8A"
Dim lTest2 As Int64 = HexToLong(strTemp) ' lTest2 = 2513260426
I have a hex string, strTemp that needs to be assigned as a _hex value_ to
i32Test. I cannot assign it directly because it overflows the Int32
variable. But if I assign it to the Int32 variable as a hex value the
assignment goes okay and i32Test is then equal to -1781706870...
Dim i32Test As Int32 = &H95CD4F8A
The variable strTemp changes with each call to Guid.NewGuid() so I cannot
hard code the hex value in the assignment. How do I convert the string
"95CD4F8A" to an Int32 variable?
Maybe I've been working on this too much today and am overlooking the
obvious. And I need a break from this project which I plan on taking as
soon as I send this. I have other projects to work on and newsgroups to
catch up on!
Dan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks