>How do you get a rgb string ("125,125,125") from a number.
>ex:
>myColor = RGB(100,100,0)
>myRGBString = NumToRGB(mycolor)
>How do I do this?
>-John S. Huddleston
John,
not my code, but we do it like this:
lnNew = GETCOLOR()
RGB3 = INT( lnNew/(256*256))
lnNew = lnNew - ( RGB3 * 256 * 256)
RGB2 = INT( lnNew/256)
lnNew = lnNew - ( RGB2 * 256)
RGB1 = lnNew
HTH
regards
Ian