Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hexadecimal to Decimal format number conversion

Status
Not open for further replies.

rottek

Technical User
Aug 25, 2001
8
IT
Dear Sirs,

I found a command in Visual Basic for Acces to convert a decimal format number to an exadecimal format one (the commad is Hex(number)).

But I was not able to find any comand or any instruction to convert the Hex number to a Decimal format number.

Please there is someone that could help on this?

Thank you very much in advance.

Rottek
 
The Val function will convert hexadecimal strings to numbers. For example:
Code:
Val("&H10")
produces the number 16. Simply concatenate "&H" to the front of the hexadecimal string before passing it to the Val function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top