From hex to decimal.

  • Thread starter Thread starter Lance
  • Start date Start date
L

Lance

VisualBasic.Hex converts from a decimal to a Hex string,
but is there a way to convert a Hex string to a decimal?
 
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/default.asp?url=/library/en-us/vblr7/html/
vagrptypeconversion.asp

HOWTO: Use CLng() to Convert Hexadecimal Number back to Decimal in VBScript
http://support.microsoft.com/default.aspx?scid=kb;en-us;279115

Best regards,

Jacob Yang
Microsoft Online Partner Support
<MCSD>
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
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
 
Lance said:
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))
 
Hello,

Lance said:
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))
///
 
Hello,

Fergus Cooney said:
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.
 
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]" <[email protected]>
| References: <[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: MOPS
| Date: Mon, 8 Sep 2003 13:01:52 +0200
| Lines: 22
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Hello,
|
| > 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
 
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
 
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" <[email protected]>
| References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| 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: <#[email protected]>
| 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!TK2MSFTNGP12.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
|
|
|
 
Back
Top