Converts a Long numeral to an 8 character Hex value

Category:
Dates and Math
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
'VB's HEX$ function does not always return an 8 character 'value. This routine begins with VB's HEX routine and 'left pads it with zeroes until the length is 8 characters

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: