Convert from Hex to Dec

Added By: drakebrimstone

(2 of 5) by 3.
Rate Snippet:
Description:  The function converts a Hex number to a Dec number. Usefull for converting Hex color codes to RGB color codes (direct conversion of the Hex color code into a Dec number results in the RGB color code) You may also manualy parse out the individual colors for conversion into the individual RGB components (red green and blue of course :) So, to convert the hex code for white to the RGB code for white you would do this: iRGB = HexToDec("ffffff") Drake Brimstone
Language:  Visual Basic Script

Save to web space
E-mail Link

Code Snippet: