449,312 Members | 1,730 Online
Need help? Post your question and get tips & solutions from a community of 449,312 IT Pros & Developers. It's quick & easy.

# From hex to decimal.

 P: n/a VisualBasic.Hex converts from a decimal to a Hex string, but is there a way to convert a Hex string to a decimal? Nov 20 '05 #1
11 Replies

 P: n/a Hi Larry, Her's one way: MsgBox (Val("&hFACE")) '-1300 Regards, Fergus Nov 20 '05 #2

 P: n/a Hi Lance, We can also use the CLng function. MsgBox(CLng("&Hff")) Please refer to the following URLs for the detailed information regarding this issue Visual Basic Language Reference - Type Conversion Functions http://msdn.microsoft.com/library/de...us/vblr7/html/ vagrptypeconversion.asp HOWTO: Use CLng() to Convert Hexadecimal Number back to Decimal in VBScript http://support.microsoft.com/default...b;en-us;279115 Best regards, Jacob Yang Microsoft Online Partner Support Get Secure! ¨C www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights. Nov 20 '05 #3

 P: n/a Hi Jacob, I'm curious. What is Microsoft Online Partner Support ? What's MSFT? And why do you have "This posting is provided "as is" with no warranties and confers no rights"? Regards, Fergus Nov 20 '05 #4

 P: n/a Hi Lance || Hi Larry. Oops. :-) Regards, Fergus Nov 20 '05 #5

 P: n/a "Lance" schrieb VisualBasic.Hex converts from a decimal to a Hex string, but is there a way to convert a Hex string to a decimal? MsgBox(System.Convert.ToInt32("10ab", 16)) -- Armin Nov 20 '05 #6

 P: n/a Hello, "Lance" schrieb: VisualBasic.Hex converts from a decimal to a Hex string, but is there a way to convert a Hex string to a decimal? \\\ Dim s As String = "FFF" MsgBox(CLng("&H" & s)) /// -- Herfried K. Wagner MVP · VB Classic, VB .NET http://www.mvps.org/dotnet Nov 20 '05 #7

 P: n/a Hello, "Fergus Cooney" schrieb: What is Microsoft Online Partner Support ? .... What's MSFT? MSFT = Microsoft. And why do you have "This posting is provided "as is" with no warranties and confers no rights"? Maybe we should include that in our signatures too. -- Herfried K. Wagner MVP · VB Classic, VB .NET http://www.mvps.org/dotnet Nov 20 '05 #8

 P: n/a Thanks for all the help! Nov 20 '05 #9

 P: n/a Hi, Fergus Microsoft Online Partner Support is the name of the team at Microsoft where Jacob works. As Herfried said: | > What's MSFT? | | MSFT = Microsoft. | > And why do you have "This posting is provided "as is" with no | > warranties and confers no rights"? This is known as a disclaimer. Since Microsoft is a large company with substantial assets, this is one tactic that our legal department has us use to prevent lawsuits. HTH, John Eikanger Microsoft Developer Support This posting is provided “AS IS” with no warranties, and confers no rights. (c) 2003 Microsoft Corporation. All rights reserved. -------------------- | From: "Herfried K. Wagner [MVP]" | References: <42****************************@phx.gbl> | Subject: Re: MOPS | Date: Mon, 8 Sep 2003 13:01:52 +0200 | Lines: 22 | X-Tomcat-NG: microsoft.public.dotnet.languages.vb | | Hello, | | "Fergus Cooney" schrieb: | > What is Microsoft Online Partner Support ? | | ... | | > What's MSFT? | | MSFT = Microsoft. | | > And why do you have "This posting is provided "as is" with no | > warranties and confers no rights"? | | Maybe we should include that in our signatures too. | | -- | Herfried K. Wagner | MVP · VB Classic, VB .NET | http://www.mvps.org/dotnet Nov 20 '05 #10

 P: n/a Hi John, Thanks for the info. If I understand correctly, the disclaimer is there because you are official MS people but offering an unofficial comment. I was wondering if you'd tell me more about MOPS - who, where, what, how, etc. For instance: Is there a web site? (I don't mean http://support.microsoft.com/, as that is for customers seeking support - I mean one that's about and for the poeple involved). Specificially, I'm curious about your role in these newsgroups. Do you [MOPSters] pop in on a personal basis, as you feel like it, or is it a regular part of the role? If the latter, is it a dedicated role or just part and parcel amongst a range of operations? Regards, Fergus Nov 20 '05 #11

 P: n/a Hi, Fergus Everyone at Microsoft is supposed to be involved in the community. For most teams it's a limited role, but Jacob and I spend most of our time in the newsgroups trying to help out. Hope this helps clarify things, John Eikanger Microsoft Developer Support This posting is provided “AS IS” with no warranties, and confers no rights. (c) 2003 Microsoft Corporation. All rights reserved. -------------------- | From: "Fergus Cooney" | References: <42****************************@phx.gbl> | Subject: Re: MOPS | Date: Tue, 9 Sep 2003 20:11:56 +0100 | Lines: 19 | X-Priority: 3 | X-MSMail-Priority: Normal | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 | Message-ID: <#L**************@TK2MSFTNGP12.phx.gbl> | Newsgroups: microsoft.public.dotnet.languages.vb | NNTP-Posting-Host: m195-mp1.cvx2-a.bre.dial.ntli.net 62.253.80.195 | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:136062 | X-Tomcat-NG: microsoft.public.dotnet.languages.vb | | Hi John, | | Thanks for the info. If I understand correctly, the disclaimer is there | because you are official MS people but offering an unofficial comment. | | I was wondering if you'd tell me more about MOPS - who, where, what, how, | etc. For instance: Is there a web site? (I don't mean | http://support.microsoft.com/, as that is for customers seeking support - I | mean one that's about and for the poeple involved). | | Specificially, I'm curious about your role in these newsgroups. Do you | [MOPSters] pop in on a personal basis, as you feel like it, or is it a regular | part of the role? If the latter, is it a dedicated role or just part and | parcel amongst a range of operations? | | Regards, | Fergus | | | Nov 20 '05 #12

### This discussion thread is closed

Replies have been disabled for this discussion.