Dick7Access
Dick S
- Local time
- Today, 04:34
- Joined
- Jun 9, 2009
- Messages
- 4,201
I gave you a link in my prior post. That will convert a decimal to a Hex number.
A color string needs to be 6 characters:
FF9900
The first two (FF) designate the red value, the second two (99) designate green and the last two (00) designate blue. An issue you might run into is that the Hex function doesn't pad 0's onto the left. So Hex(7) will return 7 and not 07. You would have to catch that and pad it with the 0 to make your final string 6 characters.
Also, its a 256 color pallet, meaning if the user inputs 312 for green, its an invalid input. They can only input numbers 0-255 for valid colors.
Thanks for answering. I went to the link many times, but I couldn't grasp the concept. Your post look like I might get it, but I haven't look it over yet, as I am feeding my face right now. Nuts! just got mustard on my key board!!!