devxlogo

Converting between hex/decimal

Converting between hex/decimal

Question:
Is there a way to ‘easily’ convert betweenHexadecimal and decimal with VB 5.0 Profesional.(ie. Without doing the long conversion from hex to ascii, then using the conversion factor, then to decimal) or simply given a Hex number calculating an error checking (Check Sum) operation?

Answer:
There are some built-in functions to perform these conversions. Specifically, look for the Hex and Val functions.

devx-admin

Share the Post: