From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- .../source/text/sbasic/shared/03010306.xhp | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 helpcontent2/source/text/sbasic/shared/03010306.xhp (limited to 'helpcontent2/source/text/sbasic/shared/03010306.xhp') diff --git a/helpcontent2/source/text/sbasic/shared/03010306.xhp b/helpcontent2/source/text/sbasic/shared/03010306.xhp new file mode 100644 index 000000000..9dacef585 --- /dev/null +++ b/helpcontent2/source/text/sbasic/shared/03010306.xhp @@ -0,0 +1,68 @@ + + + + + + + RGB Function [VBA] + /text/sbasic/shared/03010306.xhp + + + + + +
+ + RGB function [VBA] + + +

RGB Function [VBA]

+Returns a Long integer color value consisting of red, green, and blue components, according to VBA color formula. +
+ + + +RGB (Red, Green, Blue) + + + +Long + + + +Because of the VBA compatibility mode (Option VBASupport 1), the Long value is calculated as
+Result = red + green×256 + blue×65536. +
+ + + + + + +Option VBASupport 1 +Sub ExampleRGBVBA +Dim lVar As Long + lVar = rgb(128,0,200) + Print lVar; ' returns 13107328 +End Sub + + + + +
-- cgit v1.2.3