Syntax
Public Function RGBColor(Red As Integer, Green As Integer, Blue As Integer) As Long
Description
This function returns a value of type long representing an RGB color value from a set of red, green and blue color components.
Parameters
| Key | Description |
| Red | Integer in the range 0-255 , inclusive , that represents the intensity of red component of the color. |
| Green | Integer in the range 0-255 , inclusive , that represents the intensity of Green component of the color. |
| Blue | Integer in the range 0-255 , inclusive , that represents the intensity of Blue component of the color. |
Return value
Returns a long value representing an RGB color.
Exceptions
| Exception type | Condition |
| ArgumentsException | If green , red , blue value outside of 0 and 255 |
Sample
Public Sub main () AlertMessage RGBColor (255,255,255) End sub
See Also