Search Tools Links Login

A Fast Hex 2 Decimal Conversion


Visual Basic 6, or VB Classic

Simple way to convert Hex to Dec in one line of code. This code is for Beginners.

Original Author: Billy Conner

Assumptions

The Hex to Dec conversion gives an error if greater val than the MAX value of a long integer.
(2,147,483,647) (&H7FFFFFFF)

Code

MYHEX$ = "7FFFFFFF"
Mydec& = Val("&H" & MYHEX$)

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 317 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.