DIAdem Help

Method: RGB for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: RGB for VBS

Specifies the RGB color value.

vRGB = Object.RGB(red, green, blue)
ObjectVBS
Object with this method. You do not need to specify this object.
redVariant
Specifies the proportion of red in the color. Value in the range of 0 to 255.
greenVariant
Specifies the proportion of green in the color. Value in the range of 0 to 255.
blueVariant
Specifies the proportion of blue in the color. Value in the range of 0 to 255.
vRGBVariant
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()