Hy Alonso Look the RGBComp function in foxtools.fll where is the explanation
RGBComp( )
Returns the red, green, and blue components of a composite RGB color value.
Syntax
RGBComp( nRGBColor, @nRedVal, @nGreenVal, @nBlueVal )
nRGBColor
Specifies a composite RGB color value ranging from 0 to 16777215.
@nRedVal
Specifies a reference to a variable in which the function returns the intensity of the red color component of nRGBColor.
@nGreenVal
Specifies a reference to a variable in which the function returns the intensity of the green color component of nRGBColor.
@nBlueVal
Specifies a reference to a variable in which the function returns the intensity of the blue color component of nRGBColor.
Return Type
Logical
>Greetings my friends. :)
>
>One more of those tiny easy questions:
>
>?RGB(150,120,0) returns 30870. No problem.
>
>But, how can I get the RGB components from 30870?
>
>I want to do something like :
>
>x = Form.BackColor
>
>RedComponent = RED(x)
>GreenComponent = GREEN(x)
>BlueComponent = BLUE(x)
>
>Any help is welcome.
>
>TIA
>
>Alonso
Alexandre Palma
Senior Application Architect