>RGB() takes a RED,GREEN,BLUE color componenets and converts to a unique color number. Is there a way to take the unique color number and convert to a RED,GREEN,BLUE color componenet ?
Ron,
You can either do the math or bit mask it (Red's in the most significant 8 bits, green in the middle, and blue in the least significant 8 bits) or, my preference, use the foxtools function RGBComp(). Here's the syntax once the library is loaded:
STORE 0 TO lnred, lngreen, lnblue
= RGBComp(lncolor, @lnred, @lngreen, @lnblue)
George
Ubi caritas et amor, deus ibi est