Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RGB() and Getcolor()
Message
From
17/01/2002 07:13:08
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00605980
Message ID:
00606002
Views:
27
Alan you can use the RGBComp function in foxtools.fll
taken from the foxtools help
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
>RGB() and GETCOLOR() both return a colour number, how do i change a colour number into RGB()?
>
>thanks
>
>daryl
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform