by Chris Lee (7 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 28th June 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
RGB to HEX
b = Len(a)
If b = 5 Then a = "0" & a
If b = 4 Then a = "00" & a
If b = 3 Then a = "000" & a
If b = 2 Then a = "0000" & a
If b = 1 Then a = "00000" & a
RGBtoHEX = a