Method: RGB for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: RGB for VBS
Method: RGB for VBS
Specifies the RGB color value.
vRGB = Object.RGB(red, green, blue)
| Object | VBS Object with this method. You do not need to specify this object. |
| red | Variant Specifies the proportion of red in the color. Value in the range of 0 to 255. |
| green | Variant Specifies the proportion of green in the color. Value in the range of 0 to 255. |
| blue | Variant Specifies the proportion of blue in the color. Value in the range of 0 to 255. |
| vRGB | Variant Receives the RGB color value. |
The following example changes the background color of DIAdem REPORT:
Report.Settings.Page.BackgroundColor.ColorIndex =eColorIndexOtherColors Report.Settings.Page.BackgroundColor.RGB = RGB(0,255,0) ' Green Call Report.Refresh()