VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



RGB to HEX

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

Rate 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

Download this snippet    Add to My Saved Code

RGB to HEX Comments

No comments have been posted about RGB to HEX. Why not be the first to post a comment about RGB to HEX.

Post your comment

Subject:
Message:
0/1000 characters