Re: form backColor by Stefan
Stefan
Tue Oct 26 07:03:38 CDT 2004
Would it be easier to store the entire RGB() value as one single
integer? Otherwise you can re-calculate the single R,G and B values
LPARAMETERS nColor
LOCAL lnR,lnG,lnB
lnR=BITRSHIFT(BITLSHIFT(nColor,24),24)
lnG=BITRSHIFT(BITLSHIFT(nColor,16),24)
lnB=BITRSHIFT(nColor,16)
RETURN "RGB("+TRAN(lnR)+","+TRAN(lnG)+","+TRAN(lnB)+")"
(code posted by Roger Ansell)
hth
-Stefan
"Mohammed Abdel-Razzak" <MohammedAbdelRazzak@discussions.microsoft.com> schrieb im
Newsbeitrag news:014334A3-50C4-4FF2-A970-98D59F692547@microsoft.com...
> Dear sirs
> I've a form I change its BackColor at run time, where I read the red and
> green and blue colors from a table I've created, this table has three fields
> for the three colors.
> there are also a command button in the form where the user can change the
> form backColor
> the problem is how can I save each color (the red, the green and the blue)
> in its field in the table ???
>
> thanks
> Mohammed