https://bugs.documentfoundation.org/show_bug.cgi?id=145725
Mike Kaganski <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|BASIC |Documentation CC| |olivier.hallot@libreoffice. | |org --- Comment #8 from Mike Kaganski <[email protected]> --- By the way, the opposite direction functions (Red(Long), Green(Long), Blue(Long)) do not consider compatibility mode (naturally, because there's no counterparts in VBA) - and that creates additional confusion. Also there's now a ScriptForge wrapper to this: svc.RGB [1]. But that would likely not be affected, since wrapped Basic code would not be run in a compatibility mode... Clear documentation is badly needed in [2]. Also [3], [4] and [5] need a notice that they may return unexpected results on values created using RGB in compat mode. I'd suggest this code to be suggested as a robust user replacement: Function MyRGB(r As Integer, g As Integer, b As Integer) As Long MyRGB = (r And 255) * 65536 + (g And 255) * 256 + (b And 255) End Function [1] https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03/sf_basic.html?DbPAR=BASIC#bm_id831618907521168 [2] https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03010305.html?DbPAR=BASIC [3] https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03010303.html?DbPAR=BASIC [4] https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03010302.html?DbPAR=BASIC [5] https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03010301.html?DbPAR=BASIC -- You are receiving this mail because: You are the assignee for the bug.
